/* Contact page */

/* Contact Page Styles */

.contact-page {
    background: var(--bg-light);
}

.contact-main {
    min-height: calc(100vh - 200px);
}

.contact-hero {
    background: linear-gradient(135deg, #296ff9 0%, #662acc 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

/* Laptop: taller hero to clear fixed nav */
@media (min-width: 1024px) {
    .contact-page .contact-hero {
        background: linear-gradient(135deg, #296ff9 0%, #662acc 100%);
        color: white;
        padding: 9rem 0 4rem;
        text-align: center;
    }
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 1rem;
    text-align: center;
}

html[dir="rtl"] .contact-hero .eyebrow {
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.2;
    color: white;
}

.contact-hero .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.45;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.contact-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-info-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info-items {
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgb(238 241 255 / 46%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-info-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info-content a:hover {
    color: #4d5af1;
    text-decoration: underline;
}

.contact-info-content p {
    color: var(--text-light);
    margin: 0;
}

.contact-phone-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

html[dir="rtl"] .contact-phone-list {
    align-items: flex-start;
}

.contact-social {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-social h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-social .social-links {
    display: flex;
    gap: 0.75rem;
}

.contact-social .social-links a {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.contact-social .social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-form .form-field {
    margin-bottom: 1rem;
}

.contact-form .form-field.is-disabled,
.contact-form .form-field:has(input:disabled) {
    background: #f3f4f6;
    opacity: 0.92;
    cursor: not-allowed;
}

.contact-form .form-field.is-disabled .form-input,
.contact-form .form-field:has(input:disabled) .form-input {
    color: #4b5563;
    cursor: not-allowed;
    background: transparent;
}

.contact-form .form-field textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    align-self: stretch;
}

.contact-form .form-field:has(textarea) {
    align-items: flex-start;
}

.contact-form .form-field:has(textarea) .field-icon {
    margin-top: 0.5rem;
}

.contact-form .form-field:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Legacy support for old form-group structure (if any remain) */

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form input:not(.form-input),
.contact-form textarea:not(.form-input) {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.contact-form input:not(.form-input):focus,
.contact-form textarea:not(.form-input):focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    background: var(--primary-color, #4361ee);
    box-shadow: none;
    transform: none;
}

.contact-form .btn-primary:hover {
    background: #3651d4;
    box-shadow: none;
    transform: none;
}

/* RTL Support for Contact Page */

html[dir="rtl"] .contact-wrapper {
    direction: rtl;
}

html[dir="rtl"] .contact-info {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .contact-info-item {
    flex-direction: row;
    text-align: right;
}

html[dir="rtl"] .contact-info-content {
    text-align: right;
}

html[dir="rtl"] .contact-info-content h3,
html[dir="rtl"] .contact-info-content a,
html[dir="rtl"] .contact-info-content p {
    text-align: right;
}

html[dir="rtl"] .contact-social {
    text-align: right;
}

html[dir="rtl"] .contact-social h3 {
    text-align: right;
}

html[dir="rtl"] .contact-social .social-links {
    flex-direction: row;
    justify-content: flex-start;
}

html[dir="rtl"] .contact-hero {
    text-align: center;
}

html[dir="rtl"] .contact-hero h1,
html[dir="rtl"] .contact-hero .hero-subtitle {
    text-align: center;
}

html[dir="rtl"] .contact-form-wrapper {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .contact-form-wrapper h2 {
    text-align: right;
}

html[dir="rtl"] .contact-form {
    direction: rtl;
}

html[dir="rtl"] .contact-form label {
    text-align: right;
}

html[dir="rtl"] .contact-form input:not(.form-input),
html[dir="rtl"] .contact-form textarea:not(.form-input) {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .contact-form .form-field {
    direction: rtl;
}

html[dir="rtl"] .contact-form .form-input {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .contact-form input::placeholder,
html[dir="rtl"] .contact-form textarea::placeholder {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .contact-form .btn-primary {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .contact-form .btn-primary .btn-text {
    text-align: center;
}

@media (max-width: 968px) {
.contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

.contact-hero {
        padding: 7rem 0 3rem;
    }

.contact-hero h1 {
        font-size: 2rem;
    }

.contact-info,
    .contact-form-wrapper {
        padding: 2rem;
    }

.contact-content {
        padding: 2rem 0;
    }
}

@media (max-width: 640px) {
.contact-hero h1 {
        font-size: 1.75rem;
    }

.contact-hero .hero-subtitle {
        font-size: 1rem;
    }

.contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

.contact-info-item {
        gap: 1rem;
    }

.contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

