/* ==========================================================
          پالت اختصاصی صفحه تماس حق‌ستا
          ========================================================== */
.contact-wrapper {
    --brand-c: #00967D;
    --brand-c-hover: #007c67;
    --brand-c-subtle: rgba(0, 150, 125, 0.1);
    --box-bg: #FBFBFB;
    --card-border: #e9ecef;
    --title-c: #1e293b;
    --desc-c: #475569;
    --input-bg: #ffffff;
    --input-border: #d1d5db;

    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: "ss01" 1;
    direction: rtl;
}

[data-theme="dark"] .contact-wrapper,
body[data-theme="dark"] .contact-wrapper {
    --brand-c: #00967D;
    --brand-c-hover: #00b395;
    --brand-c-subtle: rgba(0, 150, 125, 0.18);
    --box-bg: #232323;
    --card-border: #333333;
    --title-c: #f8fafc;
    --desc-c: #cbd5e1;
    --input-bg: #1c1c1c;
    --input-border: #3d424a;
}

/* هدر صفحه */
.contact-hero-section {
    padding: 45px 0 35px;
    text-align: center;
}
.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-c);
    background: var(--brand-c-subtle);
    border: 1px solid rgba(0, 150, 125, 0.25);
    border-radius: 50px;
    margin-bottom: 14px;
}
.contact-hero-title {
    font-weight: 800;
    font-size: 2rem;
    color: var(--title-c);
    line-height: 1.5;
    margin-bottom: 10px;
}
.contact-hero-title span {
    color: var(--brand-c);
}
.contact-hero-desc {
    color: var(--desc-c);
    max-width: 580px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* کارت‌های اطلاعات تماس در نوار بالایی */
.info-strip-card {
    background-color: var(--box-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.info-strip-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-c);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.info-strip-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--brand-c-subtle);
    color: var(--brand-c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}
.info-strip-card h6 {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--title-c);
    margin-bottom: 4px;
}
.info-strip-card p, .info-strip-card a {
    font-size: 0.9rem;
    color: var(--desc-c);
    margin: 0;
    text-decoration: none;
}
.info-strip-card a:hover {
    color: var(--brand-c);
}

/* باکس‌های بخش فرم و نقشه */
.contact-panel {
    background-color: var(--box-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.contact-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--title-c);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-panel-subtitle {
    color: var(--desc-c);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

/* استایل المان‌های فرم */
.contact-form .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--title-c);
    margin-bottom: 6px;
}
.contact-form .form-control,
.contact-form .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--title-c);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: all 0.2s;
    width: 100%;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--brand-c);
    box-shadow: 0 0 0 3px var(--brand-c-subtle);
    outline: none;
}
.contact-btn-submit {
    background-color: var(--brand-c);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: background-color 0.2s, transform 0.15s;
}
.contact-btn-submit:hover {
    background-color: var(--brand-c-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

/* نقشه و قاب آن */
.map-frame-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    flex-grow: 1;
    min-height: 380px;
}
.map-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}
[data-theme="dark"] .map-frame-wrapper iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(95%);
}

.office-hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--desc-c);
}

.alert {
    position: relative;
    padding: 0.9rem 1.25rem;
    padding-right: 3rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;           /* گوشه‌های گرد */
    font-size: 0.9rem;
    line-height: 1.6;
    list-style: none;
}

.alert ul {
    margin: 0;
    padding-right: 1.2rem;          /* برای حالت RTL */
    list-style: none;
}

.alert li {
    margin-bottom: 0.25rem;
}

.alert li:last-child {
    margin-bottom: 0;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* نوار رنگی در راستای RTL */
.alert-success {
    background-image: linear-gradient(90deg, #28a745 0%, #28a745 4px, transparent 4px);
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger {
    background-image: linear-gradient(90deg, #dc3545 0%, #dc3545 4px, transparent 4px);
}
.alert {
    position: relative;
    padding: 0.9rem 1.25rem;
    padding-right: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.7;
    direction: rtl;
}

.alert ul {
    margin: 0;
    padding: 0;
}

.alert li {
    margin-bottom: .35rem;
    list-style: none;
}

.alert-success {
    color: #14532d;
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
}

.alert-success::before {
    content: "✓";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

.alert-danger {
    color: #7f1d1d;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

.alert-danger::before {
    content: "!";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}
