/* 
 * EchoeSeed Text Capsule - Main Styles
 * Matches the Echoeback Video Capsule styling guide exactly
 */

/* Font override for entire container - prevent theme conflicts */
.echoeback-recorder-container,
.echoeback-recorder-container *,
.echoeback-recorder-container h1,
.echoeback-recorder-container h2,
.echoeback-recorder-container h3,
.echoeback-recorder-container h4,
.echoeback-recorder-container h5,
.echoeback-recorder-container h6,
.echoeback-recorder-container p,
.echoeback-recorder-container span,
.echoeback-recorder-container div,
.echoeback-recorder-container button,
.echoeback-recorder-container input,
.echoeback-recorder-container textarea,
.echoeback-recorder-container select,
.echoeback-recorder-container label,
.echoeback-recorder-container a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    color: #333333 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* Additional overrides for white text elements */
.echoeback-recorder-container .echoeback-stepper-circle,
.echoeback-recorder-container .echoeback-button-primary,
.echoeback-recorder-container .echoeback-button-success,
.echoeback-recorder-container .echoeback-button-danger,
.echoeback-recorder-container .echoeback-stage-buttons button.active {
    color: white !important;
}

/* Prevent link styling inheritance */
.echoeback-recorder-container a.echoeback-button,
.echoeback-recorder-container a.echoeback-button:visited,
.echoeback-recorder-container a.echoeback-button:link {
    text-decoration: none !important;
}

/* Main container - matching video capsule exactly */
.echoeback-recorder-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Progress Stepper - matching video capsule exactly */
.echoeback-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.echoeback-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.echoeback-stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.echoeback-stepper-label {
    font-size: 14px !important;
    color: #666 !important;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-stepper-connector {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 10px;
    position: relative;
    top: -16px;
    z-index: 0;
}

.echoeback-stepper-item.active .echoeback-stepper-circle {
    background-color: #4a90e2;
    color: white;
}

.echoeback-stepper-item.active .echoeback-stepper-label {
    color: #4a90e2 !important;
    font-weight: 600 !important;
}

.echoeback-stepper-item.completed .echoeback-stepper-circle {
    background-color: #4caf50;
    color: white;
}

.echoeback-stepper-item.completed .echoeback-stepper-label {
    color: #4caf50 !important;
}

.echoeback-stepper-connector.active {
    background-color: #4a90e2;
}

.echoeback-stepper-connector.completed {
    background-color: #4caf50;
}

/* Step titles - matching video capsule */
.echoeback-step-title {
    font-size: 28px !important;
    margin-bottom: 25px;
    color: #333333 !important;
    font-weight: 500 !important;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Step content - matching video capsule structure */
.echoeback-step {
    display: block;
}

.echoeback-step:not(#echoeback-step-1) {
    display: none;
}

/* Camera info styling - updated to match video capsule exactly */
.echoeback-camera-info {
    background: #f8f9fa !important;
    border-left: 4px solid #4a90e2;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #6b7280 !important;
    line-height: 1.6;
    font-weight: normal;
    text-align: left;
    border-top: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
}

/* Textarea container - custom styling for text capsule */
.echoeback-textarea-container {
    position: relative;
    width: 100%;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    min-height: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.echoeback-textarea {
    width: 100%;
    flex: 1;
    min-height: 250px;
    padding: 20px;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    background: transparent;
    color: #333;
}

.echoeback-textarea:focus {
    outline: none;
}

.echoeback-char-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Stage buttons - matching video capsule exactly */
.echoeback-stage-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.echoeback-stage-buttons button {
    padding: 12px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
    background: #f5f5f5;
    color: #333 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
}

.echoeback-stage-buttons button:hover {
    background: #e9e9e9;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    color: #333 !important;
    text-decoration: none !important;
}

.echoeback-stage-buttons button.active {
    background: #4a90e2 !important;
    color: white !important;
    border-color: #4a90e2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.echoeback-stage-buttons button.active:hover {
    background: #3a80d2 !important;
    color: white !important;
}

.echoeback-stage-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Buttons - matching video capsule exactly with font override */
.echoeback-button {
    padding: 12px 24px;
    background: #f5f5f5;
    color: #333 !important;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px !important;
    transition: all 0.2s ease;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-button:hover {
    background: #e9e9e9;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    color: #333 !important;
}

.echoeback-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.echoeback-button-primary {
    background: #4a90e2 !important;
    color: #fff !important;
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.echoeback-button-primary:hover {
    background: #3a80d2 !important;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}

.echoeback-button-success {
    background: #2ecc71 !important;
    color: #fff !important;
    border-color: #2ecc71;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.echoeback-button-success:hover {
    background: #27ae60 !important;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}

.echoeback-button-danger {
    background: #e74c3c !important;
    color: #fff !important;
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.echoeback-button-danger:hover {
    background: #c0392b !important;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}

.echoeback-button-small {
    padding: 8px 15px;
    font-size: 14px;
}



/* Form styling - matching video capsule */
.echoeback-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.echoeback-form-group {
    margin-bottom: 20px;
}

.echoeback-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-form-group input[type="text"],
.echoeback-form-group input[type="email"],
.echoeback-form-group input[type="date"],
.echoeback-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff;
    color: #000 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
}

.echoeback-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 300px;
    max-height: 500px;
    transition: all 0.2s ease;
    color: #000 !important;
    background: #fff;
    font-family: inherit;
    line-height: 1.6;
    overflow-y: auto;
    box-sizing: border-box;
}

.echoeback-form-group input[type="text"]:focus,
.echoeback-form-group input[type="email"]:focus,
.echoeback-form-group input[type="date"]:focus,
.echoeback-form-group select:focus,
.echoeback-form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.echoeback-form-group input.error,
.echoeback-form-group select.error,
.echoeback-form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.echoeback-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Form actions */
.echoeback-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

/* Step 2 specific button overrides - force consistent styling */
.echoeback-step-2 .echoeback-form-actions button {
    padding: 12px 24px !important;
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-step-2 .echoeback-form-actions button:hover {
    background: #e9e9e9 !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    color: #333 !important;
}

.echoeback-step-2 .echoeback-form-actions button.echoeback-button-success {
    background: #2ecc71 !important;
    color: #fff !important;
    border-color: #2ecc71 !important;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2) !important;
}

.echoeback-step-2 .echoeback-form-actions button.echoeback-button-success:hover {
    background: #27ae60 !important;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Loading - matching video capsule */
#echoeback-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
}

.echoeback-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#echoeback-loading-progress {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

#echoeback-loading-progress-bar {
    height: 100%;
    background: #4a90e2;
    width: 0%;
    transition: width 0.3s ease;
}

#echoeback-loading-progress-percentage {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#echoeback-loading p {
    font-size: 16px;
    margin: 0;
    text-align: center;
}

/* Checkbox styling - matching video capsule */
.echoeback-checkbox-group {
    margin: 20px 0;
}

.echoeback-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.echoeback-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
}

.echoeback-checkbox-label span {
    line-height: 1.5;
}

.echoeback-consent-description {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    margin-left: 24px;
}

/* Terms link */
.echoeback-terms-link {
    text-align: center;
    margin: 15px 0;
}

.echoeback-terms-link a {
    color: #4a90e2 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.echoeback-terms-link a:hover {
    color: #3a7bc8 !important;
    text-decoration: underline !important;
}

.echoeback-terms-link a:visited {
    color: #4a90e2 !important;
}

/* Review container - matching video capsule */
.echoeback-review-container {
    margin-bottom: 30px;
}

.echoeback-review-video {
    margin-bottom: 30px;
}

.echoeback-review-video h3 {
    font-size: 18px !important;
    margin-bottom: 15px;
    color: #333 !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-message-preview {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 16px !important;
    color: #333 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-review-details {
    margin-bottom: 20px;
}

.echoeback-review-details h3 {
    font-size: 18px !important;
    margin-bottom: 15px;
    color: #333 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Details grid - matching video capsule */
.echoeback-details-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 20px;
    align-items: center;
    margin-bottom: 20px;
}

.detail-label {
    font-weight: 600 !important;
    color: #555 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.detail-value {
    color: #333 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Final review */
.echoeback-final-review {
    text-align: center;
    margin-bottom: 30px;
}

.echoeback-submit-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.echoeback-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

.echoeback-summary-item strong {
    font-weight: 600;
    color: #333;
}

.echoeback-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Success message - matching video capsule */
.echoeback-success-message {
    text-align: center;
    padding: 40px 20px;
}

/* New enhanced success page styling */
.success-icon {
    font-size: 80px !important;
    margin-bottom: 20px !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.echoeback-success-message h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 15px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.success-subtitle {
    font-size: 18px !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.success-details {
    font-size: 16px !important;
    color: #718096 !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.home-button {
    background: linear-gradient(135deg, #4a90e2 0%, #5ba0f2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.home-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3) !important;
    background: linear-gradient(135deg, #3a7bc8 0%, #4a90e2 100%) !important;
}

/* Legacy success styling for backwards compatibility */
.echoeback-success-message svg {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.echoeback-success-message h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.echoeback-success-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Modal styling */
.echoeback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.echoeback-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.echoeback-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.echoeback-modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.echoeback-modal-body {
    margin-bottom: 20px;
}

.echoeback-modal-footer {
    text-align: center;
}

/* Payment Step */
.echoeback-payment-header {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.echoeback-package {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-align: center !important;
}

.echoeback-package:hover {
    border-color: #4a90e2 !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1) !important;
}

.echoeback-package.selected {
    border-color: #4a90e2 !important;
    background: #f8fbff !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15) !important;
}

.echoeback-payment-title,
.echoeback-package h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin-bottom: 5px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-payment-price,
.echoeback-package-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #4a90e2 !important;
    margin-top: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-payment-description,
.echoeback-package p {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 10px 0 0 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.echoeback-package-selected {
    color: #2ecc71;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    display: block;
}

.echoeback-promo-code-section {
    margin: 25px 0;
}

.echoeback-promo-code-section .echoeback-form-group {
    margin-bottom: 0;
}

.echoeback-promo-code-section input[type="text"] {
    flex: 1;
}

.echoeback-promo-code-section button {
    flex: 0 0 auto;
}

/* Payment method selection styling */
.echoeback-payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.echoeback-payment-method {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
}

.echoeback-payment-method:hover {
    border-color: #4a90e2 !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1) !important;
}

.echoeback-payment-method.selected {
    border-color: #4a90e2 !important;
    background: #f8fbff !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15) !important;
}

.echoeback-payment-method h4 {
    margin: 0 0 10px 0 !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.echoeback-payment-method p {
    margin: 0 !important;
    color: #666 !important;
    font-size: 14px !important;
}

/* Mobile responsive - Enhanced for perfect mobile experience */
@media (max-width: 768px) {
    /* Container optimization - preserve desktop look but optimize for mobile */
    .echoeback-recorder-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
        border-radius: 0 !important; /* Edge-to-edge on mobile */
        box-shadow: none !important; /* Remove shadow on mobile for cleaner look */
    }

    /* Form optimization */
    .echoeback-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Textarea optimization - Critical mobile fixes */
    .echoeback-textarea-container {
        min-height: 300px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .echoeback-textarea {
        width: 100% !important;
        min-height: 250px !important;
        padding: 20px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
        line-height: 1.6 !important;
        border: none !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        resize: vertical !important;
        
        /* iOS fixes */
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-border-radius: 12px !important;
    }

    .echoeback-textarea:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
        -webkit-transform: scale(1) !important;
        transform: scale(1) !important;
    }

    /* Character counter - Mobile optimized positioning */
    .echoeback-char-counter {
        position: absolute !important;
        bottom: 10px !important;
        right: 10px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        color: #fff !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        z-index: 10 !important;
    }

    /* Button optimization - Touch-friendly */
    .echoeback-stage-buttons {
        flex-direction: column;
        gap: 12px;
        margin: 25px 0;
    }

    .echoeback-stage-buttons button {
        width: 100% !important;
        min-height: 44px !important; /* iOS touch target minimum */
        padding: 15px 20px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
        
        /* Touch improvements */
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    /* All buttons touch-friendly */
    .echoeback-button {
        min-height: 44px !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        
        /* Touch improvements */
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        touch-action: manipulation !important;
    }

    .echoeback-button-primary,
    .echoeback-button-success,
    .echoeback-button-danger {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Form inputs - Mobile optimized */
    .echoeback-form-group input[type="text"],
    .echoeback-form-group input[type="email"],
    .echoeback-form-group input[type="date"],
    .echoeback-form-group select,
    .echoeback-form-group textarea {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 15px !important;
        border-radius: 12px !important;
        border: 2px solid #e2e8f0 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .echoeback-form-group input:focus,
    .echoeback-form-group select:focus,
    .echoeback-form-group textarea:focus {
        border-color: #4a90e2 !important;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
        outline: none !important;
    }

    /* Header and title optimization */
    .echoeback-step-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }

    /* Stepper navigation - Mobile optimized */
    .echoeback-stepper {
        padding: 15px 0 !important;
        margin-bottom: 25px !important;
    }

    .echoeback-stepper-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .echoeback-stepper-label {
        font-size: 12px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .echoeback-stepper-connector {
        height: 2px !important;
        margin-top: 18px !important;
    }

    /* Review and details optimization */
    .echoeback-review-container {
        margin-bottom: 20px;
    }

    .echoeback-details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .detail-label {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .detail-value {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    .detail-value:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .echoeback-form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .echoeback-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .echoeback-final-review {
        text-align: left;
    }

    /* Payment methods - Mobile optimized */
    .echoeback-payment-methods-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .echoeback-payment-method {
        padding: 15px !important;
        min-height: 44px !important;
    }

    /* Checkbox optimization - Critical mobile fix */
    .echoeback-checkbox-group {
        margin: 25px 0 !important;
        padding: 15px !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
    }

    .echoeback-checkbox-label {
        display: flex !important;
        align-items: flex-start !important;
        cursor: pointer !important;
        min-height: 44px !important; /* Touch target minimum */
        padding: 8px 0 !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        touch-action: manipulation !important;
    }

    .echoeback-checkbox-label input[type="checkbox"] {
        /* Make checkbox much larger and touch-friendly */
        width: 20px !important;
        height: 20px !important;
        margin-right: 15px !important;
        margin-top: 0 !important;
        cursor: pointer !important;
        
        /* Enhanced styling for mobile */
        -webkit-appearance: none !important;
        appearance: none !important;
        border: 2px solid #4a90e2 !important;
        border-radius: 4px !important;
        background: #fff !important;
        position: relative !important;
        flex-shrink: 0 !important;
        
        /* Touch improvements */
        touch-action: manipulation !important;
    }

    .echoeback-checkbox-label input[type="checkbox"]:checked {
        background: #4a90e2 !important;
        border-color: #4a90e2 !important;
    }

    .echoeback-checkbox-label input[type="checkbox"]:checked::after {
        content: '✓' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        color: white !important;
        font-size: 14px !important;
        font-weight: bold !important;
        line-height: 1 !important;
    }

    .echoeback-checkbox-label input[type="checkbox"]:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2) !important;
    }

    .echoeback-checkbox-label span {
        line-height: 1.5 !important;
        font-size: 16px !important;
        color: #333 !important;
        flex: 1 !important;
        padding-top: 0 !important;
    }

    .echoeback-consent-description {
        font-size: 14px !important;
        color: #666 !important;
        margin-top: 12px !important;
        margin-left: 35px !important; /* Align with checkbox text */
        line-height: 1.4 !important;
    }
}

@media (max-width: 600px) {
    /* Very small screens - Additional optimizations */
    .echoeback-recorder-container {
        padding: 10px !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .echoeback-step-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .echoeback-camera-info {
        padding: 15px;
        font-size: 14px;
        background: #f8f9fa !important;
        border-left: 4px solid #4a90e2;
        color: #6b7280 !important;
        text-align: left;
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }

    .echoeback-modal-content {
        padding: 15px !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }

    .echoeback-stepper {
        margin-bottom: 20px;
        padding: 10px 0 !important;
    }

    .echoeback-stepper-label {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    .echoeback-stepper-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    /* Textarea adjustments for very small screens */
    .echoeback-textarea-container {
        min-height: 280px !important;
        margin-bottom: 15px !important;
    }

    .echoeback-textarea {
        min-height: 220px !important;
        padding: 15px !important;
        font-size: 16px !important;
    }

    /* Button adjustments for very small screens */
    .echoeback-stage-buttons {
        gap: 10px !important;
        margin: 20px 0 !important;
    }

    .echoeback-stage-buttons button {
        padding: 12px 15px !important;
        font-size: 15px !important;
    }

    /* Form inputs for very small screens */
    .echoeback-form-group input,
    .echoeback-form-group select,
    .echoeback-form-group textarea {
        padding: 12px !important;
        font-size: 16px !important;
    }
}

/* Minimum mobile size - 320px screens */
@media (max-width: 320px) {
    .echoeback-recorder-container {
        padding: 8px !important;
    }

    .echoeback-step-title {
        font-size: 18px !important;
        padding: 0 5px !important;
    }

    .echoeback-textarea {
        padding: 12px !important;
        min-height: 200px !important;
    }

    .echoeback-stepper-label {
        font-size: 10px !important;
    }

    .echoeback-stepper-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Fix iOS input zoom and behavior */
        .echoeback-textarea,
        .echoeback-form-group input,
        .echoeback-form-group select,
        .echoeback-form-group textarea {
            font-size: 16px !important;
            -webkit-transform: scale(1) !important;
            transform: scale(1) !important;
        }
        
        /* Fix iOS button behavior */
        .echoeback-button,
        .echoeback-stage-buttons button {
            -webkit-appearance: none !important;
            -webkit-border-radius: 12px !important;
            border-radius: 12px !important;
        }
        
        /* Fix iOS scroll issues */
        .echoeback-recorder-container {
            -webkit-overflow-scrolling: touch !important;
        }
        
        /* Prevent iOS zoom on form focus */
        .echoeback-textarea:focus,
        .echoeback-form-group input:focus,
        .echoeback-form-group select:focus,
        .echoeback-form-group textarea:focus {
            -webkit-transform: scale(1) !important;
            transform: scale(1) !important;
            zoom: 1 !important;
        }

        /* Fix iOS Safari viewport issues */
        .echoeback-textarea-container {
            position: relative !important;
            overflow: hidden !important;
        }

        /* iOS checkbox fixes */
        .echoeback-checkbox-label input[type="checkbox"] {
            -webkit-appearance: none !important;
            appearance: none !important;
            -webkit-transform: scale(1) !important;
            transform: scale(1) !important;
        }

        .echoeback-checkbox-label input[type="checkbox"]:focus {
            -webkit-transform: scale(1) !important;
            transform: scale(1) !important;
        }
    }
}

/* Android-specific fixes */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 0) {
    /* Fix Android button rendering */
    .echoeback-button,
    .echoeback-stage-buttons button {
        -webkit-appearance: none !important;
        appearance: none !important;
        background-clip: padding-box !important;
    }
    
    /* Fix Android input styling */
    .echoeback-textarea,
    .echoeback-form-group input,
    .echoeback-form-group select,
    .echoeback-form-group textarea {
        -webkit-appearance: none !important;
        appearance: none !important;
        background-clip: padding-box !important;
    }

    /* Fix Android focus states */
    .echoeback-textarea:focus,
    .echoeback-form-group input:focus,
    .echoeback-form-group select:focus {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Android checkbox fixes */
    .echoeback-checkbox-label input[type="checkbox"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        background-clip: padding-box !important;
    }

    .echoeback-checkbox-label {
        -webkit-tap-highlight-color: rgba(74, 144, 226, 0.1) !important;
    }
} 