/* صفحة الاتصال */
.contact-container {
    max-width: 540px;
}

.contact-container .glass-card {
    padding: 36px 28px;
}

/* رأس الصفحة */
.contact-header {
    margin-bottom: 28px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.back-link:hover {
    color: var(--text-primary);
}

.contact-title-section {
    text-align: center;
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--contact), var(--contact-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.contact-title-section .title {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.contact-title-section .subtitle {
    font-size: 0.95rem;
    color: var(--contact);
    font-weight: 600;
}

/* النموذج */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

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

.form-group label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--contact);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.input-wrapper svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.input-wrapper:focus-within svg {
    color: var(--contact);
}

.input-wrapper input,
.input-wrapper textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-wrapper svg {
    margin-top: 4px;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 80px;
}

/* زر الإرسال */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, var(--contact), var(--contact-dark));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.submit-btn:hover svg {
    transform: translateX(-4px) translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* معلومات الاتصال - عرض متقابل */
.contact-info {
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.contact-info h3 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 18px;
}

.bilingual-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--contact);
}

.info-col {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.info-col-ar {
    justify-content: flex-start;
    text-align: right;
}

.info-col-fr {
    justify-content: flex-end;
    text-align: left;
    direction: ltr;
}

.info-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-primary);
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
}

.info-col-fr .info-label {
    font-family: sans-serif;
    color: rgba(255, 255, 255, 0.5);
}

.info-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    direction: ltr;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 18px;
    height: 18px;
    color: var(--contact);
}

/* رسالة النجاح */
.success-message {
    display: none;
    text-align: center;
    padding: 24px;
    animation: fadeIn 0.5s ease;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--arabic);
}

.success-message h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تجاوب */
@media (max-width: 480px) {
    .contact-container .glass-card {
        padding: 28px 18px;
    }

    .contact-title-section .title {
        font-size: 1.5rem;
    }
}

/* تمرير */
.page-wrapper {
    overflow-y: auto;
    align-items: flex-start;
    padding: 30px 0;
}