@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

#modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tlc-open-modal {
    cursor: pointer;
}

#modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: tlcFadeIn 0.3s ease;
}

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

#modal .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: tlcSlideDown 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes tlcSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#modal .close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: 300;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#modal .close:hover,
#modal .close:focus {
    color: #1a1a2e;
}

#modal .modal-body {
    display: flex;
    min-height: 500px;
}

#modal .form-section {
    flex: 1;
    padding: 40px;
    background-color: #ffffff;
    border-right: 1px solid #e8e8e8;
}

#modal .content-section {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal .form-section h2 {
    color: #1a1a2e;
    margin-bottom: 30px;
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

#modal .content-section h2 {
    margin-bottom: 20px;
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: -0.5px;
}

#modal .content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e8e8e8;
    font-weight: 300;
}

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

#modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a2e;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
}

#modal .form-group label::after {
    content: " *";
    color: #d32f2f;
}

#modal .form-group input,
#modal .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fafafa;
    color: #1a1a2e;
}

#modal .form-group input:focus,
#modal .form-group select:focus {
    outline: none;
    border-color: #d4af37;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

#modal .form-group input.error-field,
#modal .form-group select.error-field {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

#modal .form-group input.error-field:focus,
#modal .form-group select.error-field:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

#modal .error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#modal .submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #d4af37;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

#modal .submit-btn:hover:not(:disabled) {
    background-color: #c9a227;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

#modal .submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#modal .features {
    margin-top: 30px;
}

#modal .features h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    color: #d4af37;
    font-weight: 600;
}

#modal .features ul {
    list-style: none;
    padding: 0;
}

#modal .features ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e8e8e8;
    font-weight: 300;
}

#modal .features ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    #modal .modal-body {
        flex-direction: column;
    }

    #modal .form-section {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    #modal .content-section {
        padding: 30px;
    }

    #modal .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}