/* ============================================================
   Accurate Hisab — Get Quote Page Styles
   File : css/quote.css
   Requires : css/common.css (loaded before this file)
   ============================================================ */


/* ─── Page wrapper ─────────────────────────────────────────── */
.gq-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    box-sizing: border-box;
}


/* ─── Hero heading (above the two cards) ───────────────────── */
.gq-hero {
    text-align: center;
    margin-bottom: 32px;
}

.gq-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(47, 111, 237, .08);
    border: 1px solid rgba(47, 111, 237, .22);
    border-radius: 40px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ah-primary, #2f6fed);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.gq-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 7px rgba(34, 197, 94, .55);
    animation: gqBlink 2s ease-in-out infinite;
}

@keyframes gqBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .28;
    }
}

.gq-hero h1 {
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    color: var(--ah-text, #0f172a);
    margin: 0 0 10px;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.gq-hero h1 em {
    font-style: normal;
    color: var(--ah-primary, #2f6fed);
}

.gq-hero p {
    font-size: 15px;
    color: var(--ah-muted, rgba(15, 23, 42, .62));
    margin: 0;
    line-height: 1.7;
}


/* ─── Two-column grid ──────────────────────────────────────── */
.gq-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 22px;
    align-items: start;
}


/* ─── Shared glass card base (both panels) ─────────────────── */
.gq-card {
    background: var(--ah-card, rgba(255, 255, 255, .88));
    border: 1px solid var(--ah-stroke, rgba(120, 160, 235, .28));
    border-radius: var(--ah-radius, 22px);
    box-shadow: var(--ah-shadow, 0 18px 60px rgba(22, 60, 120, .12));
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Gradient top stripe — left card */
.gq-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--ah-radius, 22px) var(--ah-radius, 22px) 0 0;
    background: linear-gradient(90deg,
            var(--ah-primary, #2f6fed) 0%,
            var(--ah-primary-2, #4aa3ff) 100%);
}


/* ─── LEFT — info card ─────────────────────────────────────── */
.gq-info {
    padding: 42px 38px;
}

/* Soft floating glow orbs (same feel as bg.html animated blobs) */
.gq-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: gqFloat 10s ease-in-out infinite;
}

.gq-orb--1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(47, 111, 237, .07) 0%, transparent 68%);
    top: -55px;
    right: -55px;
}

.gq-orb--2 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(74, 163, 255, .06) 0%, transparent 65%);
    bottom: 20px;
    left: -35px;
    animation-delay: 5s;
}

@keyframes gqFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.gq-info__body {
    position: relative;
    z-index: 1;
}

.gq-info__heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--ah-text, #0f172a);
    margin: 0 0 7px;
    letter-spacing: -.02em;
}

.gq-info__sub {
    font-size: 13.5px;
    color: var(--ah-muted, rgba(15, 23, 42, .6));
    margin: 0 0 28px;
    line-height: 1.7;
}

/* Feature rows */
.gq-feats {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 30px;
}

.gq-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(47, 111, 237, .042);
    border: 1px solid rgba(47, 111, 237, .11);
    border-radius: 13px;
    transition: background .14s, border-color .14s, transform .14s;
}

.gq-feat:hover {
    background: rgba(47, 111, 237, .078);
    border-color: rgba(47, 111, 237, .2);
    transform: translateX(4px);
}

.gq-feat__ico {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    background: rgba(47, 111, 237, .1);
    border: 1px solid rgba(47, 111, 237, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.gq-feat strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ah-text, #0f172a);
    margin-bottom: 2px;
}

.gq-feat span {
    font-size: 12px;
    color: var(--ah-muted, rgba(15, 23, 42, .56));
    line-height: 1.4;
}

/* Stats row */
.gq-stats {
    display: flex;
    border-top: 1px solid var(--ah-stroke, rgba(120, 160, 235, .28));
    padding-top: 22px;
}

.gq-stat {
    flex: 1;
    text-align: center;
}

.gq-stat:not(:last-child) {
    border-right: 1px solid var(--ah-stroke, rgba(120, 160, 235, .28));
}

.gq-stat__n {
    font-size: 22px;
    font-weight: 800;
    color: var(--ah-primary, #2f6fed);
    line-height: 1;
}

.gq-stat__l {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ah-muted, rgba(15, 23, 42, .48));
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}


/* ─── RIGHT — form card ────────────────────────────────────── */
.gq-fcard {
    padding: 42px 38px;
}

/* Reverse gradient direction on form card top stripe */
.gq-fcard::after {
    background: linear-gradient(90deg,
            var(--ah-primary-2, #4aa3ff) 0%,
            var(--ah-primary, #2f6fed) 100%);
}

.gq-fhead {
    margin-bottom: 26px;
}

.gq-fhead h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--ah-text, #0f172a);
    margin: 0 0 5px;
    letter-spacing: -.02em;
}

.gq-fhead p {
    font-size: 13px;
    color: var(--ah-muted, rgba(15, 23, 42, .6));
    margin: 0;
    line-height: 1.65;
}

/* Error message */
.gq-err {
    display: none;
    background: rgba(254, 226, 226, .8);
    border: 1px solid rgba(252, 165, 165, .5);
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 14px;
}

.gq-err.on {
    display: block;
}

/* Form layout */
.gq-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gq-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gq-field label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(15, 23, 42, .72);
    letter-spacing: .025em;
}

.req {
    color: #ef4444;
    margin-left: 2px;
}

/* Inputs, selects, textarea */
.gq-field input,
.gq-field select,
.gq-field textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--ah-text, #0f172a);
    background: rgba(238, 245, 255, .65);
    border: 1.5px solid rgba(120, 160, 235, .35);
    border-radius: 11px;
    padding: 10px 13px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .16s, box-shadow .16s, background .16s;
}

.gq-field input::placeholder,
.gq-field textarea::placeholder {
    color: rgba(15, 23, 42, .32);
}

.gq-field input:focus,
.gq-field select:focus,
.gq-field textarea:focus {
    border-color: var(--ah-primary, #2f6fed);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .1);
}

.gq-field textarea {
    resize: vertical;
    min-height: 78px;
}

/* Select wrapper (custom arrow) */
.gq-sw {
    position: relative;
}

.gq-sw select {
    appearance: none;
    cursor: pointer;
}

.gq-sw::after {
    content: "▾";
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, .38);
    pointer-events: none;
    font-size: 12px;
}

/* Submit button — matches .ah-btn--primary style */
.gq-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg,
            var(--ah-primary, #2f6fed),
            var(--ah-primary-2, #4aa3ff));
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(47, 111, 237, .36);
    transition: transform .14s, box-shadow .14s, opacity .14s;
    margin-top: 4px;
}

.gq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(47, 111, 237, .46);
}

.gq-btn:active {
    transform: translateY(0);
}

.gq-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.gq-btn svg {
    transition: transform .18s;
}

.gq-btn:hover svg {
    transform: translateX(3px);
}

/* Loading spinner (shown when .loading is on the button) */
.gq-spin {
    width: 17px;
    height: 17px;
    border: 2.5px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gqSpin .7s linear infinite;
    display: none;
}

.loading .gq-spin {
    display: block;
}

.loading .gq-lbl {
    display: none;
}

@keyframes gqSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Privacy note under button */
.gq-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--ah-muted, rgba(15, 23, 42, .48));
    margin-top: 12px;
}


/* ─── Success state ─────────────────────────────────────────── */
.gq-ok {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 16px 8px 8px;
}

.gq-ok.on {
    display: flex;
}

.gq-ok__ring {
    width: 66px;
    height: 66px;
    background: rgba(34, 197, 94, .1);
    border: 2px solid rgba(34, 197, 94, .28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    animation: gqPop .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes gqPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.gq-ok h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ah-text, #0f172a);
    margin: 0;
}

.gq-ok p {
    font-size: 13.5px;
    color: var(--ah-muted, rgba(15, 23, 42, .62));
    margin: 0;
    line-height: 1.65;
    max-width: 310px;
}

.gq-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 11px;
    text-decoration: none;
    transition: background .14s;
}

.gq-wa:hover {
    background: #15803d;
}

.gq-back {
    font-size: 13px;
    color: var(--ah-primary, #2f6fed);
    text-decoration: none;
}

.gq-back:hover {
    text-decoration: underline;
}


/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 840px) {
    .gq-grid {
        grid-template-columns: 1fr;
    }

    .gq-info,
    .gq-fcard {
        padding: 32px 24px;
    }
}

@media (max-width: 500px) {
    .gq-row {
        grid-template-columns: 1fr;
    }

    .gq-wrap {
        padding: 16px 12px 48px;
    }
}


/* ============================================================
   GET QUOTE PAGE — MOBILE RESPONSIVE ADDITIONS
   ============================================================ */

@media (max-width: 840px) {
    .gq-grid {
        grid-template-columns: 1fr;
    }

    .gq-info,
    .gq-fcard {
        padding: 28px 22px;
    }

    /* Hide decorative orbs to reduce clutter */
    .gq-orb {
        display: none;
    }
}

@media (max-width: 560px) {
    .gq-wrap {
        padding: 14px 10px 44px;
    }

    .gq-row {
        grid-template-columns: 1fr;
    }

    .gq-hero__title {
        font-size: clamp(22px, 6vw, 30px);
    }

    .gq-info,
    .gq-fcard {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .gq-btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats row: 2-col on small mobile */
    .gq-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}