/* ================================================================
   contact.css — Contact Page (RTL Persian)
   Brand: #1a1040  Accent: #6610f2
   ================================================================ */

/* ---------- Header ---------- */
.contact-header {
    background: linear-gradient(135deg, #0d0820 0%, #1a1040 50%, #2d1b69 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(102,16,242,.2) 0%, transparent 60%);
    pointer-events: none;
}

.contact-header .container { position: relative; z-index: 1; }

.contact-header h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    margin-bottom: .6rem;
}

.contact-header p {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- Main Area ---------- */
.contact-body {
    padding: 3.5rem 0 5rem;
    background: #f8f9fc;
}

/* ---------- Form Card ---------- */
.contact-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(26,16,64,.08);
    overflow: hidden;
}

.contact-form-card-header {
    background: linear-gradient(135deg, #f0ebff, #ede9fe);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-form-card-header h5 {
    font-weight: 700;
    color: #1a1040;
    margin: 0;
    font-size: 1.1rem;
}

.contact-form-card-body {
    padding: 2rem;
}

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

.contact-form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: .4rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: .9rem;
    pointer-events: none;
}

.input-icon-wrap .form-control {
    padding-right: 2.6rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 11px;
    height: 46px;
    font-size: .93rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    background: #fafbff;
}

.input-icon-wrap .form-control:focus {
    border-color: #6610f2;
    box-shadow: 0 0 0 3px rgba(102,16,242,.14);
    outline: none;
    background: #fff;
}

.contact-form-card textarea.form-control {
    border: 1.5px solid #e0e0e0;
    border-radius: 11px;
    font-size: .93rem;
    font-family: 'Vazirmatn', sans-serif;
    resize: vertical;
    min-height: 130px;
    background: #fafbff;
    transition: border-color .2s, box-shadow .2s;
    padding: .75rem 1rem;
}

.contact-form-card textarea.form-control:focus {
    border-color: #6610f2;
    box-shadow: 0 0 0 3px rgba(102,16,242,.14);
    outline: none;
    background: #fff;
}

.btn-contact-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1a1040, #6610f2);
    color: #fff;
    border: none;
    border-radius: 13px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(26,16,64,.25);
}

.btn-contact-submit:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(26,16,64,.3);
}

/* ---------- Success State ---------- */
.contact-success-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(26,16,64,.08);
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.contact-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: #16a34a;
    margin: 0 auto 1.5rem;
    animation: scaleIn .4s ease;
}

@keyframes scaleIn {
    from { transform: scale(.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.contact-success-card h4 {
    color: #1a1040;
    font-weight: 800;
    margin-bottom: .6rem;
}

.contact-success-card p {
    color: #6c757d;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

/* ---------- Info Card ---------- */
.contact-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(26,16,64,.08);
    height: 100%;
}

.contact-info-card h5 {
    font-weight: 800;
    color: #1a1040;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0ebff;
}

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

.contact-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item .info-label {
    font-size: .82rem;
    color: #6c757d;
    margin-bottom: .15rem;
}

.contact-info-item .info-value {
    font-weight: 600;
    font-size: .92rem;
    color: #1a1040;
}

.contact-info-item a.info-value {
    color: #6610f2;
    text-decoration: none;
}

.contact-info-item a.info-value:hover {
    text-decoration: underline;
}

/* soft backgrounds */
.bg-primary-soft { background: #dbeafe; }
.bg-info-soft    { background: #cffafe; }
.bg-success-soft { background: #dcfce7; }
.bg-purple-soft  { background: #ede9fe; }
.text-primary    { color: #3b82f6 !important; }
.text-info       { color: #0891b2 !important; }
.text-success    { color: #16a34a !important; }
.text-purple     { color: #7c3aed !important; }
