/* =========================================================
   HostMafiya - Contact Us page (WHMCS Six theme)
   File: templates/six/css/hm-contact.css
   Sab styles .hm-contact ke andar scoped hain, baaki pages par asar nahi.
   ========================================================= */

/* Page background (sirf contact page par) */
body:has(.hm-contact) {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 40, 40, .35) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 60%, rgba(200, 0, 0, .35) 0%, transparent 45%),
        radial-gradient(ellipse at 100% 60%, rgba(200, 0, 0, .35) 0%, transparent 45%),
        linear-gradient(180deg, #2a0303 0%, #120000 55%, #0b0000 100%) !important;
    background-attachment: fixed !important;
}
body:has(.hm-contact) #main-body {
    background: transparent !important;
    padding-top: 25px;
    padding-bottom: 40px;
}
/* Six ka default page title + breadcrumb chhupao (hum apna dikhate hain) */
.main-content:has(.hm-contact) > .header-lined,
.main-content:has(.hm-contact) > .page-header { display: none !important; }

/* ---------- Variables ---------- */
.hm-contact {
    --hm-gold: #ffc21a;
    --hm-gold-2: #ffa800;
    --hm-red: #ff1a1a;
    --hm-red-dark: #8a0000;
    --hm-text: #ffffff;
    --hm-muted: #e9d9d9;
    font-family: "Poppins", "Open Sans", Arial, sans-serif;
    color: var(--hm-text);
    margin: 0 0 10px;
}
.hm-contact *, .hm-contact *::before, .hm-contact *::after { box-sizing: border-box; }
.hm-contact input, .hm-contact textarea, .hm-contact button { font-family: inherit; }

/* ---------- Outer frame ---------- */
.hm-contact__frame {
    position: relative;
    background: linear-gradient(180deg, rgba(25, 2, 2, .96) 0%, rgba(14, 0, 0, .97) 100%);
    border: 2px solid rgba(255, 30, 30, .85);
    border-radius: 18px;
    padding: 28px 34px 34px;
    box-shadow:
        0 0 22px rgba(255, 0, 0, .55),
        0 0 60px rgba(255, 0, 0, .25),
        inset 0 0 40px rgba(255, 0, 0, .08);
    overflow: hidden;
}
.hm-contact__frame::before {           /* halka red glow andar */
    content: "";
    position: absolute;
    right: -120px; bottom: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255, 30, 30, .22) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Header ---------- */
.hm-contact__head {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    position: relative;
}
.hm-contact__head::after {             /* gold divider line */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hm-gold) 0%, #ff4d00 45%, rgba(255, 60, 0, .5) 75%, transparent 100%);
}
.hm-contact__head-icon {
    font-size: 54px;
    line-height: 1;
    color: var(--hm-gold);
    filter: drop-shadow(0 0 10px rgba(255, 194, 26, .45));
}
.hm-contact__title {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #fff;
    line-height: 1.1;
}
.hm-contact__title span { color: var(--hm-gold); }
.hm-contact__tagline {
    margin: 6px 0 0;
    font-size: 21px;
    color: #f3e8e8;
}

/* ---------- Breadcrumb ---------- */
.hm-contact__crumb {
    list-style: none;
    margin: 14px 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 15px;
    color: #fff;
}
.hm-contact__crumb li + li::before {
    content: "/";
    padding: 0 10px;
    color: #fff;
}
.hm-contact__crumb a { color: #fff; text-decoration: none; }
.hm-contact__crumb a:hover { color: var(--hm-gold); }
.hm-contact__crumb i { margin-right: 6px; }

/* ---------- Body grid ---------- */
.hm-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ---------- Form card ---------- */
.hm-contact__card {
    border: 2px solid rgba(255, 90, 20, .85);
    border-radius: 16px;
    padding: 22px 28px 26px;
    background: linear-gradient(160deg, rgba(40, 4, 4, .7), rgba(10, 0, 0, .85));
    box-shadow: 0 0 18px rgba(255, 50, 0, .45), inset 0 0 25px rgba(255, 40, 0, .07);
}
.hm-contact__row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
}
.hm-contact__row--top { align-items: start; }
.hm-contact__row--top .hm-contact__label { padding-top: 10px; }
.hm-contact__label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    color: #fff;
}
.hm-contact__label i {
    width: 28px;
    text-align: center;
    font-size: 22px;
    color: var(--hm-gold);
}
.hm-contact__label em { color: var(--hm-gold); font-style: normal; }

.hm-contact input.hm-contact__input,
.hm-contact textarea.hm-contact__input {
    width: 100%;
    height: 44px;
    border: 1px solid #fff;
    border-radius: 7px;
    background: #FFF8F6;
    color: #222;
    font-size: 16px;
    padding: 0 16px;
    box-shadow: none;
    transition: box-shadow .2s, border-color .2s;
}
.hm-contact textarea.hm-contact__input {
    height: 122px;
    padding: 12px 16px;
    resize: vertical;
}
.hm-contact .hm-contact__input::placeholder { color: #8a8a8a; }
.hm-contact .hm-contact__input:focus {
    outline: none;
    border-color: var(--hm-gold);
    box-shadow: 0 0 0 3px rgba(255, 194, 26, .45);
}

/* ---------- Captcha ---------- */
.hm-contact__captcha {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 6px 0 16px;
    padding-left: 246px;               /* inputs ke saath center */
}
.hm-contact__captcha-img {
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}
.hm-contact input.hm-contact__captcha-input {
    width: 92px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid #fff;
    background: #fff;
    color: #222;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hm-contact__captcha-refresh {
    background: none;
    border: 0;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform .4s, color .2s;
}
.hm-contact__captcha-refresh:hover { color: var(--hm-gold); transform: rotate(180deg); }
.hm-contact__captcha-help {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #cfbcbc;
    margin: 0;
}
.hm-contact__recaptcha { display: flex; justify-content: center; margin: 6px 0 16px; padding-left: 246px; }

/* ---------- Button ---------- */
.hm-contact__actions { text-align: center; padding-left: 246px; }
.hm-contact .hm-contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 228px;
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffd23a 0%, var(--hm-gold-2) 100%);
    color: #1a0b00;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(255, 180, 0, .45);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.hm-contact .hm-contact__btn:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(255, 190, 0, .7); filter: brightness(1.05); }
.hm-contact .hm-contact__btn i { font-size: 20px; }

/* ---------- Alerts ---------- */
.hm-contact__alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 15px;
}
.hm-contact__alert ul { margin: 4px 0 0; padding-left: 18px; }
.hm-contact__alert--error { background: rgba(255, 0, 0, .15); border: 1px solid #ff4d4d; color: #ffd6d6; }
.hm-contact__alert--success { background: rgba(0, 200, 90, .14); border: 1px solid #2ed47a; color: #d6ffe8; }
.hm-contact__alert i { font-size: 20px; margin-top: 2px; }
.hm-contact__sent { text-align: center; padding: 40px 10px; }
.hm-contact__sent i { font-size: 60px; color: var(--hm-gold); margin-bottom: 14px; }
.hm-contact__sent h3 { font-size: 26px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.hm-contact__sent p { color: var(--hm-muted); margin: 0 0 20px; }
.hm-contact__sent .hm-contact__btn { text-decoration: none; }

/* ---------- Right info panel ---------- */
.hm-contact__info { padding-top: 0; }
.hm-contact__headset {
    display: block;
    width: 210px;
    max-width: 100%;
    margin: -10px auto 18px;
    filter: drop-shadow(0 0 18px rgba(255, 170, 0, .55));
}
.hm-contact__info h2 {
    margin: 0 0 14px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
}
.hm-contact__info h2 span { color: var(--hm-gold); }
.hm-contact__info p {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.5;
    color: #f5eaea;
}
.hm-contact__list { list-style: none; margin: 0; padding: 0; }
.hm-contact__list li {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 17px;
    color: #fff;
}
.hm-contact__list a { color: #fff; text-decoration: none; word-break: break-all; }
.hm-contact__list a:hover { color: var(--hm-gold); }
.hm-contact__list .hm-ico {
    flex: 0 0 34px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--hm-gold);
    color: #1a0b00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 0 10px rgba(255, 194, 26, .45);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .hm-contact__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; }
    .hm-contact__row { grid-template-columns: 190px minmax(0, 1fr); }
    .hm-contact__captcha, .hm-contact__actions, .hm-contact__recaptcha { padding-left: 206px; }
    .hm-contact__info h2 { font-size: 30px; }
}
@media (max-width: 991px) {
    .hm-contact__frame { padding: 24px 22px 28px; }
    .hm-contact__grid { grid-template-columns: 1fr; }
    .hm-contact__info {
        display: grid;
        grid-template-columns: 170px 1fr;
        column-gap: 26px;
        align-items: center;
    }
    .hm-contact__headset { grid-row: 1 / span 3; margin: 0; width: 170px; }
    .hm-contact__title { font-size: 38px; }
}
@media (max-width: 767px) {
    .hm-contact__head { gap: 14px; }
    .hm-contact__head-icon { font-size: 40px; }
    .hm-contact__title { font-size: 32px; }
    .hm-contact__tagline { font-size: 16px; }
    .hm-contact__card { padding: 18px 16px 22px; }
    .hm-contact__row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
    .hm-contact__row--top .hm-contact__label { padding-top: 0; }
    .hm-contact__label { font-size: 16px; gap: 10px; }
    .hm-contact__captcha, .hm-contact__actions, .hm-contact__recaptcha { padding-left: 0; }
    .hm-contact .hm-contact__btn { width: 100%; }
    .hm-contact__info { display: block; text-align: left; }
    .hm-contact__headset { width: 150px; margin: 0 auto 14px; }
    .hm-contact__info h2 { font-size: 28px; }
}
@media (max-width: 420px) {
    .hm-contact__frame { padding: 18px 14px 22px; border-radius: 14px; }
    .hm-contact__title { font-size: 28px; }
}
@media (max-width: 991px) {
    body:has(.hm-contact) { background-attachment: scroll !important; }
}
