/* Contact Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contact-modal.is-open .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.contact-modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.contact-modal-close svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.contact-modal-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.contact-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-modal-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.contact-modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-contact-form .form-group {
    position: relative;
}

.modal-contact-form input,
.modal-contact-form select,
.modal-contact-form textarea {
    width: 100%;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-contact-form input:focus,
.modal-contact-form select:focus,
.modal-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-contact-form label {
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    font-size: 1rem;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 0.25rem;
}

.modal-contact-form input:focus + label,
.modal-contact-form input:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.modal-contact-form select {
    color: #6b7280;
}

.modal-contact-form select:not([value=""]) {
    color: #1e293b;
}

.modal-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 2rem;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white !important;
    -webkit-text-fill-color: white !important;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Ensure button text and all child elements are white */
.submit-button,
.submit-button * {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-text,
.button-loading {
    display: block;
    transition: all 0.3s ease;
}

.button-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.submit-button.is-loading .button-text {
    opacity: 0;
}

.submit-button.is-loading .button-loading {
    opacity: 1;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.form-success-message {
    text-align: center;
    padding: 3rem;
}

.form-success-message svg {
    width: 64px;
    height: 64px;
    color: #10b981;
    margin: 0 auto 1.5rem;
    display: block;
}

.form-success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-success-message p {
    font-size: 1.125rem;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .contact-modal-header {
        padding: 2.5rem 2rem 1.5rem;
    }
    
    .contact-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-modal-body {
        padding: 1.5rem 2rem 2rem;
    }
    
    .contact-modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    
    .modal-contact-form {
        gap: 1.25rem;
    }
    
    .submit-button {
        font-size: 1rem;
    }
}

/* Dark mode support - disabled to maintain light theme */
@media (prefers-color-scheme: dark) {
    .contact-modal-content {
        background: white;
    }
    
    .contact-modal-header h2,
    .contact-modal-header p,
    .form-success-message h3,
    .form-success-message p,
    .modal-contact-form label,
    .modal-contact-form input,
    .modal-contact-form select,
    .modal-contact-form textarea {
        color: inherit;
    }
}

/* Animation for form elements */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal.is-open .form-group {
    animation: slideUp 0.4s ease forwards;
}

.contact-modal.is-open .form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-modal.is-open .form-group:nth-child(2) { animation-delay: 0.15s; }
.contact-modal.is-open .form-group:nth-child(3) { animation-delay: 0.2s; }
.contact-modal.is-open .form-group:nth-child(4) { animation-delay: 0.25s; }
.contact-modal.is-open .form-group:nth-child(5) { animation-delay: 0.3s; }
.contact-modal.is-open .form-group:nth-child(6) { animation-delay: 0.35s; }