/* Contact Page Specific Styles */

/* Hero Section */
.contact-hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: var(--navy-deep);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 30%, var(--teal-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, var(--orange-glow) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.4;
}

.contact-hero-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem 6rem;
    background: var(--navy-mid);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.form-group label .required {
    color: var(--orange);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #ffffff;
    color: #1e293b;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 1rem;
}

/* Submit Button */
.btn-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.btn-submit .btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success & Error States */
.form-success,
.form-error {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.form-success.show,
.form-error.show {
    display: flex;
}

.contact-form.hidden {
    display: none;
}

.success-icon {
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.success-icon svg {
    width: 64px;
    height: 64px;
}

.error-icon {
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.error-icon svg {
    width: 64px;
    height: 64px;
}

.form-success h3,
.form-error h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.form-success p,
.form-error p {
    color: #64748b;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

/* Contact Info Card */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 6rem;
    height: 100%;
}

.info-card {
    background: var(--navy-deep);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s;
}

a.info-item:hover {
    background: var(--navy-light);
}

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Nav active state */
.nav-links a.active {
    color: var(--teal);
}

/* Mobile Styles */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        position: static;
        order: -1;
        height: auto;
    }
    
    .info-card {
        flex: none;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 8rem 1.5rem 3rem;
    }
    
    .contact-section {
        padding: 2rem 1rem 4rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}
