/* Contact Page Modal Styles */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-container {
    background: var(--secondary-dark);
    border: 1px solid var(--medium-gray);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    padding: 2rem;
    text-align: center;
}

.modal-title {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-message {
    color: var(--text-primary-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.form-alert {
    position: relative;
    z-index: 9999;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 20px 0 !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-alert--success {
    background: #d4edda !important;
    border: 2px solid #28a745 !important;
    color: #155724 !important;
}

.form-alert--error {
    background: #f8d7da !important;
    border: 2px solid #dc3545 !important;
    color: #721c24 !important;
}

/* Dropdown select styling */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23808080' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.form-select option {
    background: var(--secondary-dark);
    color: var(--text-white, #fff);
}

/* Compact contact form — all fields visible without scrolling */
#contactForm .form-group {
    margin-bottom: 0.875rem;
}

#contactForm .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
}

#contactForm .form-input,
#contactForm .form-select {
    padding: 0.5rem 0.75rem;
}

#contactForm .text-center {
    margin-top: 1.25rem;
}

/* Tighter card and section padding on contact page */
.contact-form-section {
    padding: 2.5rem 0;
}

.contact-form-section .card {
    padding: 2rem;
}