@charset "UTF-8";
/* CSS Document */

/* Email Popup Styles - Brand Magick - Decorative Version */

:root {
    --primary-color: #684fa3;
    --dark-purple: #291246;
    --accent-yellow: #d36602;
    --light-gray: #eceff1;
    --white: #ffffff;
    --text-dark: #291246;
    --text-medium: #717580;
    --spectral-font: 'Spectral', serif;
    --figtree-font: 'Figtree', sans-serif;
}

/* Popup wrapper */
#emailPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 18, 70, 0.7) 0%, rgba(104, 79, 163, 0.5) 100%);
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#emailPopup.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Popup Container - Three Column Layout */
.email-popup-container {
    background: var(--white);
    width: 80%;
    max-width: 1200px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(41, 18, 70, 0.35),
                0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    overflow: hidden;
}

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

/* Image Sections - Left and Right (30% each) */
.popup-image-section {
    position: relative;
    width: 30%;
    overflow: hidden;
    background: linear-gradient(135deg, #684fa3 0%, #291246 100%);
    min-height: 200px;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 18, 70, 0.3) 0%, rgba(104, 79, 163, 0.4) 100%);
    pointer-events: none;
}

/* Form Section - Middle (40%) */
.popup-form-section {
    position: relative;
    width: 40%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f6f3 100%);
}

/* Accent Line at Top */
.popup-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d36602 20%, #d36602 80%, transparent);
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(41, 18, 70, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.37, 0, 0.63, 1);
    border-radius: 50%;
    z-index: 10;
}

.popup-close-btn:hover {
    background: rgba(41, 18, 70, 0.15);
    transform: rotate(90deg);
}

.popup-close-btn span {
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
}

.popup-close-btn span:first-child {
    transform: rotate(45deg);
}

.popup-close-btn span:last-child {
    transform: rotate(-45deg);
}

/* Popup Content */
.popup-content {
    text-align: center;
}

.popup-title {
    font-family: var(--spectral-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.popup-subtitle {
    font-family: var(--spectral-font);
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

/* Form */
.popup-form {
    margin-bottom: 25px;
}

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

.popup-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--spectral-font);
    font-size: 15px;
    border: 2px solid #e4e4e4;
    border-radius: 8px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.popup-input::placeholder {
    color: var(--text-medium);
}

.popup-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(104, 79, 163, 0.12);
    background: rgba(104, 79, 163, 0.02);
}

.popup-input.error {
    border-color: #dc3131;
}

.form-error {
    display: block;
    font-size: 13px;
    color: #dc3131;
    margin-top: 6px;
    min-height: 18px;
}

/* Submit Button */
.popup-submit-btn {
    width: 100%;
    padding: 15px 28px;
    font-family: var(--figtree-font);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.37, 0, 0.63, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(104, 79, 163, 0.25);
}

.popup-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
}

.popup-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(104, 79, 163, 0.35);
}

.popup-submit-btn:hover::before {
    left: 100%;
}

.popup-submit-btn:active {
    transform: translateY(-1px);
}

.popup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.popup-submit-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.popup-submit-btn:hover i {
    transform: translateX(4px) rotate(20deg);
}

/* Success Message */
.success-message {
    padding: 20px;
    background: linear-gradient(135deg, rgba(46, 187, 121, 0.1) 0%, rgba(46, 187, 121, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid #2ebb79;
    animation: slideUp 0.4s ease-out;
}

.success-message.hidden {
    display: none;
}

.success-text {
    font-family: var(--spectral-font);
    font-size: 16px;
    color: #2ebb79;
    font-weight: 500;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 20px 0;
}

.loading-state.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(104, 79, 163, 0.1);
    border-top-color: var(--primary-color);
    border-right-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    font-family: var(--spectral-font);
    font-size: 14px;
    color: var(--text-medium);
}

/* Privacy Text */
.popup-privacy {
    font-family: var(--spectral-font);
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 18px;
    line-height: 1.5;
}

/* Decorative Bottom Elements */
.popup-decorative-bottom {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 25px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.decoration-dot:nth-child(2) {
    animation-delay: 0.3s;
    opacity: 0.5;
}

.decoration-dot:nth-child(3) {
    animation-delay: 0.6s;
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .email-popup-container {
        max-width: 85%;
    }

    .popup-image-section {
        width: 25%;
        min-height: 400px;
    }

    .popup-form-section {
        width: 50%;
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .email-popup-container {
        flex-direction: column;
        max-width: 95%;
    }

    .popup-image-section {
        width: 100%;
        height: 280px;
    }

    .popup-form-section {
        width: 100%;
        padding: 40px 30px;
    }

    .popup-title {
        font-size: 26px;
    }

    .popup-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #emailPopup {
        padding: 20px;
    }

    .email-popup-container {
        border-radius: 12px;
    }

    .popup-form-section {
        padding: 30px 20px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-subtitle {
        font-size: 14px;
    }

    .popup-submit-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}