/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.show {
    display: flex;
}

/* Modal Container */
.modal-container {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    animation: slideUp 0.3s ease-out;
    overflow-y: auto;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Form Section */
.form-section {
    padding: 50px 40px 40px;
}

.form-intro {
    margin-bottom: 40px;
}

.form-intro h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 400;
}

.form-intro p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-overlay label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.modal-overlay input[type="text"],
.modal-overlay input[type="email"],
.modal-overlay input[type="tel"],
.modal-overlay select,
.modal-overlay textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background: #f9f9f9;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.modal-overlay input[type="text"]:focus,
.modal-overlay input[type="email"]:focus,
.modal-overlay input[type="tel"]:focus,
.modal-overlay select:focus,
.modal-overlay textarea:focus {
    outline: none;
    border-color: #f9ba06;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 160, 13, 0.1);
}

.modal-overlay select {
    cursor: pointer;
}

.modal-overlay textarea {
    resize: vertical;
    height: 120px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.submit-btn {
    background: #ffcc00;
    color: #000;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #f9ba06;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 160, 13, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
    color: #27ae60;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #666;
}

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

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

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-note {
    color: #666;
    font-size: 12px;
    margin-top: 20px;
    line-height: 1.4;
}