/* ================================================================
   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: -10%;
    background: radial-gradient(ellipse at 60% 50%, rgba(102,16,242,.2) 0%, transparent 60%);
    pointer-events: none;
    animation: contactHeroGlowDrift 24s ease-in-out infinite;
}

@keyframes contactHeroGlowDrift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-2%, 3%) scale(1.07); }
    100% { transform: translate(0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-header::before { animation: 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: transparent;
}

/* ---------- Form Card ---------- */
.contact-form-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.3);
    overflow: hidden;
}

.contact-form-card-header {
    background: rgba(102,16,242,.14);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.contact-form-card-header h5 {
    font-weight: 700;
    color: #fff;
    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: #cbc4e0;
    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 rgba(255,255,255,.14);
    border-radius: 11px;
    height: 46px;
    font-size: .93rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    background: rgba(255,255,255,.04);
    color: #f3f0fb;
}

.input-icon-wrap .form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(102,16,242,.22);
    outline: none;
    background: rgba(255,255,255,.07);
}

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

.contact-form-card textarea.form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(102,16,242,.22);
    outline: none;
    background: rgba(255,255,255,.07);
}

.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: rgba(255,255,255,.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.3);
    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: #fff;
    font-weight: 800;
    margin-bottom: .6rem;
}

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

/* ---------- Info Card ---------- */
.contact-info-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.3);
    height: 100%;
}

.contact-info-card h5 {
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,.1);
}

.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: #9a8fc0;
    margin-bottom: .15rem;
}

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

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

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

/* soft backgrounds */
.bg-primary-soft { background: rgba(59,130,246,.16); }
.bg-info-soft    { background: rgba(6,182,212,.16); }
.bg-success-soft { background: rgba(34,197,94,.16); }
.bg-purple-soft  { background: rgba(139,92,246,.2); }
.text-primary    { color: #93c5fd !important; }
.text-info       { color: #67e8f9 !important; }
.text-success    { color: #86efac !important; }
.text-purple     { color: #c4b5fd !important; }
