/* Email Capture Modal Styles */
/* Include this CSS in your page's <head> or in your main stylesheet */

.email-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.email-modal-overlay.active {
    display: flex;
}

.email-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: emailModalFadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .email-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 30px 20px;
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .email-modal-overlay {
        align-items: flex-end;
    }
}

.email-modal h2 {
    color: #1B2845;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.email-modal p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.email-input:focus {
    border-color: #9B6A6C;
    box-shadow: 0 0 0 3px rgba(155, 106, 108, 0.1);
}

.email-submit-btn {
    background: linear-gradient(135deg, #9B6A6C 0%, #865A5C 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(155, 106, 108, 0.4);
}

.email-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.email-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.email-modal-close:hover {
    background: #f1f5f9;
    color: #1B2845;
}

.email-error {
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.email-error.active {
    display: block;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: emailCaptureSpinner 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

@keyframes emailModalFadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Inline Email Capture for Hero Sections */
.hero-email-capture {
    width: 100%;
    max-width: min(480px, 100%);
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-email-capture .email-form {
    display: flex;
    gap: 0;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: min(480px, 100%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.hero-email-capture .email-input {
    flex: 1 1 auto;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-right: none;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    min-width: 0;
}

.hero-email-capture .email-input:focus {
    border-color: transparent;
    outline: none;
}

.hero-email-capture .email-submit-btn {
    background: linear-gradient(135deg, #9B6A6C 0%, #865A5C 100%);
    color: white;
    padding: 16px 28px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
}

.hero-email-capture .email-submit-btn:hover {
    background: linear-gradient(135deg, #865A5C 0%, #754D4F 100%);
}

.hero-email-capture .email-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.hero-email-capture .email-error {
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    display: none;
    width: 100%;
}

.hero-email-capture .email-error.active {
    display: block;
}

/* Mobile responsiveness */
/* Progress Checklist */
.progress-checklist {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 12px;
    margin-bottom: 12px;
    animation: checklistFadeIn 0.3s ease-out;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.checklist-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.checklist-icon.pending {
    background: #dee2e6;
    border: 2px solid #adb5bd;
}

.checklist-icon.pending::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6c757d;
}

.checklist-icon.complete {
    background: #d4edda;
    border: 2px solid #4E6E58;
    animation: checkmarkPop 0.3s ease-out;
}

.checklist-icon.complete::before {
    content: "✓";
    color: #4E6E58;
    font-size: 14px;
}

.checklist-text {
    flex: 1;
}

@keyframes checklistFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Email form with document icon */
.email-form-with-document {
    display: flex;
    align-items: center;
    gap: 16px;
}

.document-icon-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #9B6A6C;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: subtle-pulse 2s ease-in-out infinite;
}

.document-icon-container svg {
    width: 32px;
    height: 32px;
    color: #9B6A6C;
}

.guide-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4E6E58;
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(155, 106, 108, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(155, 106, 108, 0.4);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .email-modal {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 30px 20px !important;
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .email-modal-overlay {
        align-items: flex-end !important;
    }

    .email-modal h2 {
        font-size: 1.5rem;
    }

    .hero-email-capture {
        max-width: 90%;
    }

    .hero-email-capture .email-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .hero-email-capture .email-input {
        border-right: 2px solid transparent;
        border-bottom: 1px solid #e2e8f0;
    }

    .hero-email-capture .email-submit-btn {
        width: 100%;
        padding: 16px;
    }

    .progress-checklist {
        font-size: 13px;
        padding: 14px 16px;
    }

    .checklist-item {
        padding: 6px 0;
        font-size: 13px;
    }

    .checklist-icon {
        width: 18px;
        height: 18px;
    }

    .document-icon-container {
        width: 50px;
        height: 50px;
    }

    .document-icon-container svg {
        width: 26px;
        height: 26px;
    }

    .email-form-with-document {
        gap: 12px;
    }

    .guide-label {
        font-size: 8px;
        padding: 2px 6px;
    }
}
