/* ==========================================================================
   Avatar Diamonds — Price Estimator page
   ========================================================================== */

.ad-estimator-section {
    padding: 4rem 1.5rem 5rem;
    background: var(--ad-bg);
}
.ad-estimator-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ----- Form column ----- */
.ad-estimator-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--ad-bg);
    border: 1px solid var(--ad-line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 37, 71, 0.03);
}

/* Grouped sections (Rates / Piece) */
.ad-est-group {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ad-line);
}
.ad-est-group:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.ad-est-group-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ad-navy);
    margin: 0;
    letter-spacing: -0.005em;
}
.ad-est-group-hint {
    font-size: 0.82rem;
    color: var(--ad-muted);
    margin: -0.65rem 0 0;
    line-height: 1.5;
    font-style: italic;
}

/* Prefixed input (₹ / %) */
.ad-est-input-prefixed {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--ad-line);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--ad-bg);
}
.ad-est-input-prefixed:focus-within {
    border-color: var(--ad-navy);
    box-shadow: 0 0 0 3px rgba(10, 37, 71, 0.12);
}
.ad-est-input-prefixed > span {
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    background: var(--ad-bg-soft);
    color: var(--ad-ink-soft);
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 500;
    border-right: 1px solid var(--ad-line);
}
.ad-est-input-prefixed .ad-est-input-suffix {
    border-right: none;
    border-left: 1px solid var(--ad-line);
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    color: var(--ad-muted);
}
.ad-est-input-prefixed input[type="number"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.75rem 0.85rem !important;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    color: var(--ad-ink);
    background: var(--ad-bg);
    font-variant-numeric: tabular-nums;
    min-width: 0;
    width: 100%;
}
.ad-est-input-prefixed input:focus { box-shadow: none !important; }

/* Diamond count label in breakup */
.ad-est-count {
    color: var(--ad-muted);
    font-size: 0.88em;
    margin-left: 0.2rem;
}
.ad-est-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ad-est-row > label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ad-navy);
}
.ad-est-row input[type="number"],
.ad-est-row select {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--ad-line);
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    color: var(--ad-ink);
    background: var(--ad-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
    font-variant-numeric: tabular-nums;
}
.ad-est-row input:focus,
.ad-est-row select:focus {
    outline: none;
    border-color: var(--ad-navy);
    box-shadow: 0 0 0 3px rgba(10, 37, 71, 0.12);
}
.ad-est-row select {
    cursor: pointer;
    background: var(--ad-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%230a2547' d='M0 0l5 6 5-6z'/></svg>") no-repeat right 0.9rem center;
    background-size: 10px 6px;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
}
.ad-est-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ad-est-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ad-est-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--ad-line);
    border-radius: 999px;
    background: var(--ad-bg);
    color: var(--ad-ink);
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.18s;
    user-select: none;
    position: relative;
}
.ad-est-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ad-est-pill:hover {
    border-color: var(--ad-navy);
    color: var(--ad-navy);
    transform: translateY(-1px);
}
.ad-est-pill.is-selected {
    background: var(--ad-navy);
    color: #fff;
    border-color: var(--ad-navy);
    font-weight: 600;
}
.ad-est-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.ad-est-swatch--yellow { background: linear-gradient(135deg, #efd07a, #cfa24a); }
.ad-est-swatch--white  { background: linear-gradient(135deg, #ececec, #bfbfc2); }
.ad-est-swatch--rose   { background: linear-gradient(135deg, #e9b6a2, #c98778); }

/* ----- Result column ----- */
.ad-estimator-result { position: sticky; top: 180px; }
.ad-est-result-card {
    background: var(--ad-bg-soft);
    border: 1px solid var(--ad-line);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(10, 37, 71, 0.03);
}
.ad-est-result-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ad-line);
    flex-wrap: wrap;
}
.ad-est-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ad-muted);
}
.ad-est-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}
#ad-est-total-value {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--ad-navy);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.ad-est-tax-note {
    font-size: 0.72rem;
    color: var(--ad-muted);
    font-style: italic;
}

.ad-est-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ad-est-table th {
    text-align: left;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ad-muted);
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid var(--ad-line);
    background: transparent;
}
.ad-est-table th:last-child,
.ad-est-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ad-est-table th:nth-child(2),
.ad-est-table td:nth-child(2) {
    text-align: right;
    color: var(--ad-ink-soft);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ad-est-table tbody td {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--ad-line-soft, rgba(228, 231, 238, 0.6));
    color: var(--ad-ink);
}
.ad-est-table tfoot td {
    padding: 0.7rem 0.4rem;
    color: var(--ad-ink-soft);
    font-weight: 500;
}

.ad-est-disclaimer {
    margin: 1.25rem 0 1.5rem;
    font-size: 0.78rem;
    color: var(--ad-muted);
    line-height: 1.6;
    padding: 0.85rem 1rem;
    background: var(--ad-bg);
    border-left: 3px solid var(--ad-gold);
    border-radius: 0 4px 4px 0;
}

/* Brand header (visible on screen + in downloaded image) */
.ad-est-brand {
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--ad-line);
}
.ad-est-brand-wordmark {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ad-navy);
    line-height: 1.1;
}
.ad-est-brand-tagline {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ad-gold-dark);
    margin-top: 0.4rem;
}

/* Brand footer (inside the render target for downloaded image) */
.ad-est-brand-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ad-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.ad-est-brand-contact {
    font-size: 0.78rem;
    color: var(--ad-ink-soft);
    letter-spacing: 0.04em;
}
.ad-est-brand-date {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ad-muted);
    font-variant-numeric: tabular-nums;
}

/* Savings banner */
.ad-est-savings {
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, rgba(201,163,77,0.14), rgba(201,163,77,0.05));
    border: 1px solid rgba(201,163,77,0.35);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.ad-est-savings-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: var(--ad-gold-dark);
}
.ad-est-savings-icon svg { width: 100%; height: 100%; }
.ad-est-savings-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.3;
    min-width: 0;
}
.ad-est-savings-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ad-gold-dark);
}
.ad-est-savings-value {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ad-navy);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
}
.ad-est-savings-sub {
    font-size: 0.78rem;
    color: var(--ad-ink-soft);
}

/* CTA row (outside render target) */
.ad-est-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}
.ad-est-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.ad-est-ctas .ad-btn--ghost {
    background: var(--ad-bg);
}

@media (max-width: 860px) {
    .ad-estimator-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ad-estimator-result { position: static; }
    .ad-est-grid-2 { grid-template-columns: 1fr; }
    .ad-estimator-section { padding: 3rem 1rem 4rem; }
    .ad-estimator-form { padding: 1.5rem; }
    .ad-est-result-card { padding: 1.5rem; }
    #ad-est-total-value { font-size: 1.85rem; }
}
