:root {
    --gold-light: #e2cf9f;
    --gold-dark: #a67c37;
    --charcoal: #1a1a1a;
    --gray-light: #f8f9fa;
    --text-muted: #636e72;
    --white: #ffffff;
}

#newsletterModal {
    font-family: "Inter", sans-serif;
}

/* Modal Overlay */
#newsletterModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    visibility: visible;
}

/* Modal Content Card */
#newsletterModal .modal-content {
    background: var(--white);
    width: 100%;
    max-width: 670px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: modalAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header / Logo Section */
#newsletterModal .modal-header {
    padding: 15px 0px 25px 0px;
    text-align: center;
}

#newsletterModal .logo-container {
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
}

#newsletterModal .logo-container img {
    width: 100%;
    height: auto;
    display: block;
    width: 25%;
    margin-top: 10px;
}

#newsletterModal h1 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

#newsletterModal .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 80%;
    margin: 0 auto;
}

/* Form Body */
#newsletterModal .modal-body {
    padding: 0 40px 40px;
}

#newsletterModal .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#newsletterModal label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    padding-left: 4px;
}

#newsletterModal .input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

#newsletterModal .input-field:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

#newsletterModal .error-text {
    color: #d63031;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
    padding-left: 4px;
}

/* Premium File Card */
#newsletterModal .file-card {
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f1e9 100%);
    border: 1px solid var(--gold-light);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

#newsletterModal .file-thumb {
    background: var(--gold);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

#newsletterModal .file-details {
    flex-grow: 1;
}

#newsletterModal .file-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.9rem;
    margin-bottom: 2px;
    display: block;
}

#newsletterModal .file-meta {
    font-size: 0.75rem;
    color: var(--gold-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Button Styling */
#newsletterModal .download-btn {
    width: 100%;
    background: var(--gold-dark);
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

#newsletterModal .download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(166, 124, 55, 0.3);
}

#newsletterModal .download-btn:disabled {
    background: var(--charcoal);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 520px) {
    #newsletterModal .modal-content {
        border-radius: 24px;
        /* height: 100%; */
        max-width: none;
    }
    #newsletterModal .modal-overlay {
        padding: 0;
    }
    #newsletterModal h1 {
        font-size: 1.2rem !important;
    }

    #newsletterModal .modal-body {
        padding: 12px;
    }

    #newsletterModal .modal-header {
        padding: 0px;
    }

    #newsletterModal .subtitle {
        font-size: 0.75rem;
    }

    #newsletterModal .file-name {
        font-size: 0.75rem;
        margin-bottom: 0px;
    }

    #newsletterModal .file-meta {
        font-size: 0.6rem;
    }

    #newsletterModal .download-btn {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }

    #newsletterModal .file-thumb {
        height: 38px;
        width: 38px;
    }

    #newsletterModal .input-field {
        padding: 12px;
    }
}
