/* Contact Page Styles */

.page-header {
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.05) 0%, rgba(205, 133, 63, 0.03) 100%);
    padding: 40px 0 60px;
    margin-top: -88px;
    padding-top: calc(88px + 40px);
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(160, 82, 45, 0.15);
}

@media (max-width: 768px) {
    .page-header {
        margin-top: -59px;
        padding-top: calc(59px + 40px);
    }
}

.header-content {
    text-align: center;
}

.page-header h1 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -3px;
    color: #3E2723;
    margin-bottom: 16px;
}

body.rtl .page-header h1 {
    font-size: 72px;
}

.page-header p {
    font-size: 20px;
    color: rgba(62, 39, 35, 0.7);
    font-weight: 400;
}

/* Contact Divider */
.contact-divider {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(160, 82, 45, 0.2);
}

.contact-divider span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(62, 39, 35, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

/* Contact Footer - matches login page */
.contact-footer {
    text-align: center;
}

.contact-footer p {
    font-size: 15px;
    color: #5D4037;
    font-weight: 600;
    margin-bottom: 12px;
}

.email-link {
    font-size: 18px;
    font-weight: 700;
    color: #A0522D;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-link:hover {
    color: #CD853F;
    transform: translateY(-2px);
}

/* Contact Section - Centered */
.contact-section {
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #FFF9F0 100%);
    border: 1px solid rgba(160, 82, 45, 0.15);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 700px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Row - Name and Email side by side */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #5D4037;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid rgba(160, 82, 45, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #3E2723;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #A0522D;
    box-shadow: 0 0 0 4px rgba(160, 82, 45, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

body.rtl .form-group input,
body.rtl .form-group textarea {
    direction: rtl;
    text-align: right;
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 50%, #DAA520 100%);
    border: none;
    padding: 16px 48px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(160, 82, 45, 0.25);
    position: relative;
    overflow: hidden;
    align-self: center;
    margin-top: 8px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #CD853F 0%, #DAA520 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(160, 82, 45, 0.35);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    body.rtl .page-header h1 {
        font-size: 48px;
    }

    .page-header p {
        font-size: 16px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

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

    .submit-btn {
        width: 100%;
    }

}

/* RTL Support */
body.rtl .form-row {
    direction: rtl;
}

body.rtl .submit-btn {
    flex-direction: row-reverse;
}
