/* Sindhoora Gold — Frontend Styles
   Editorial "Antique Gold on Paper White" aesthetic. Scoped with .grc- prefix
   so nothing bleeds into the parent theme. */

.grc-rates-card,
.grc-cta-wrap,
.grc-modal {
    box-sizing: border-box;
    font-family: Georgia, 'Playfair Display', 'Times New Roman', serif;
    color: #1A1918;
}
.grc-rates-card *,
.grc-modal * { box-sizing: border-box; }

/* ===== Rate Card ===== */
.grc-rates-card {
    max-width: 560px;
    margin: 24px auto;
    border: 1px solid #EBE8DD;
    border-radius: 8px;
    background: #FDFCF8;
    overflow: hidden;
}
.grc-rates-header {
    padding: 32px 24px 24px;
    background: linear-gradient(180deg, #242220 0%, #3a3733 100%);
    color: #FDFCF8;
}
.grc-eyebrow {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #E8D399;
    margin-bottom: 8px;
}
.grc-brand {
    font-size: 26px;
    letter-spacing: 4px;
    margin: 0 0 4px;
    text-transform: uppercase;
}
.grc-date {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    opacity: 0.75;
}
.grc-tagline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: #E8D399;
    margin-top: 12px;
    font-style: italic;
}
.grc-rates-grid { padding: 8px 24px 24px; }
.grc-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #F4F2EC;
}
.grc-rate-row:last-child { border-bottom: none; }
.grc-rate-carat { display: flex; flex-direction: column; }
.grc-rate-num {
    font-size: 32px;
    line-height: 1;
    color: #1A1918;
    font-weight: 400;
}
.grc-rate-sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #4A4844;
    margin-top: 4px;
    text-transform: uppercase;
}
.grc-rate-price { text-align: right; }
.grc-rate-value {
    display: block;
    font-size: 22px;
    color: #C59B27;
    font-weight: 400;
}
.grc-rate-per {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    color: #4A4844;
    margin-top: 2px;
}

/* ===== CTA button ===== */
.grc-cta-wrap {
    text-align: center;
    margin: 16px auto 32px;
    max-width: 560px;
}
.grc-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #242220;
    color: #FDFCF8 !important;
    border: none;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}
.grc-cta-btn:hover { transform: translateY(-1px); opacity: 0.92; }

/* ===== Modal ===== */
.grc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px;
    overflow-y: auto;
}
.grc-modal.is-open { display: flex; }
.grc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 25, 24, 0.72);
    backdrop-filter: blur(2px);
}
.grc-modal-body {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #FDFCF8;
    border-radius: 8px;
    padding: 32px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: grcSlideUp 0.28s ease-out;
    margin: auto;
}
@keyframes grcSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.grc-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border: none; background: transparent;
    font-size: 24px; color: #1A1918;
    cursor: pointer; line-height: 1;
}
.grc-modal-title {
    font-size: 28px;
    margin: 4px 0 8px;
    color: #1A1918;
    font-weight: 400;
}
.grc-modal-sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #4A4844;
    line-height: 1.5;
    margin: 0 0 24px;
}

/* ===== Form ===== */
.grc-form { display: block; }
.grc-field { margin-bottom: 20px; }
.grc-field label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: #1A1918;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}
.grc-field .grc-hint {
    font-weight: 400;
    color: #4A4844;
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
    font-style: italic;
}
.grc-field input[type=text],
.grc-field input[type=tel],
.grc-field input[type=number],
.grc-field input[type=email] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #D1CDBC;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1A1918;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.grc-field input:focus {
    outline: none;
    border-color: #C59B27;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

/* Chips */
.grc-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.grc-chip {
    flex: 0 0 auto;
    padding: 10px 20px;
    height: 44px;
    min-width: 64px;
    border: none;
    border-radius: 999px;
    background: #F7EED3;
    color: #735A11;
    font-family: Georgia, serif;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.grc-chip.is-active {
    background: #C59B27;
    color: #FFFFFF;
}

/* Estimate */
.grc-estimate {
    background: #242220;
    color: #FDFCF8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}
.grc-est-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #E8D399;
    margin-bottom: 8px;
}
.grc-est-value {
    font-size: 34px;
    line-height: 1.1;
    color: #FDFCF8;
}
.grc-est-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: rgba(253, 252, 248, 0.6);
    margin-top: 8px;
}

.grc-error {
    background: #FEE;
    border: 1px solid #F5C6C6;
    color: #9B2C2C;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Submit */
.grc-submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #C59B27;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.grc-submit-btn:hover { opacity: 0.9; }
.grc-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success view */
.grc-success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #F7EED3;
    color: #C59B27;
    font-size: 32px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.grc-modal-inner[data-grc-view="success"] { text-align: center; }
.grc-result-card {
    background: #242220;
    color: #FDFCF8;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}
.grc-result-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #E8D399;
}
.grc-result-value {
    font-size: 36px;
    margin: 8px 0 16px;
    color: #FDFCF8;
}
.grc-result-divider {
    height: 1px;
    background: rgba(253,252,248,0.15);
    margin: 0 0 12px;
}
.grc-result-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}
.grc-result-row span { color: rgba(253,252,248,0.6); }
.grc-result-row strong { color: #FDFCF8; font-weight: 400; font-family: Georgia, serif; }
.grc-footnote {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #4A4844;
    font-style: italic;
    margin: 8px 0 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .grc-modal-body { padding: 24px 18px 18px; }
    .grc-modal-title { font-size: 24px; }
    .grc-est-value { font-size: 28px; }
    .grc-brand { font-size: 22px; }
    .grc-rate-num { font-size: 28px; }
}

/* ===== Rate Trend Chart ===== */
.grc-chart-wrap {
    max-width: 700px;
    margin: 24px auto;
    padding: 20px 20px 16px;
    background: #FDFCF8;
    border: 1px solid #EBE8DD;
    border-radius: 8px;
}
.grc-chart-header { margin-bottom: 12px; }
.grc-chart-header .grc-eyebrow { color: #4A4844; }
.grc-chart-title {
    font-size: 20px;
    color: #1A1918;
    margin-top: 4px;
}
.grc-chart-empty {
    padding: 32px 16px;
    background: #F4F2EC;
    border-radius: 4px;
    color: #4A4844;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}
.grc-chart-canvas {
    width: 100% !important;
    max-height: 320px;
}
.grc-chart-legend {
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #4A4844;
    text-align: center;
}
.grc-chart-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== Horizontal rate cards (desktop) + stacked (mobile) ===== */
.grc-rates-grid--row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 20px 24px;
}
.grc-rate-card {
    padding: 20px 12px;
    border: 1px solid #EBE8DD;
    border-radius: 6px;
    background: #FDFCF8;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.grc-rate-card:hover { border-color: #C59B27; transform: translateY(-1px); }
.grc-rate-card .grc-rate-carat { display: flex; flex-direction: column; align-items: center; }
.grc-rate-card .grc-rate-price { margin-top: 8px; }
.grc-rate-card .grc-rate-num { font-size: 28px; line-height: 1; }
.grc-rate-card .grc-rate-value { font-size: 18px; }
.grc-rate-card .grc-rate-sub,
.grc-rate-card .grc-rate-per { font-size: 10px; letter-spacing: 1.5px; }

@media (max-width: 640px) {
    .grc-rates-grid--row {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 24px 24px;
    }
    .grc-rate-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 4px;
        border: none;
        border-bottom: 1px solid #F4F2EC;
        border-radius: 0;
        text-align: left;
    }
    .grc-rate-card:last-child { border-bottom: none; }
    .grc-rate-card:hover { border-color: transparent; transform: none; }
    .grc-rate-card .grc-rate-carat { flex-direction: column; align-items: flex-start; }
    .grc-rate-card .grc-rate-price { margin-top: 0; text-align: right; }
    .grc-rate-card .grc-rate-num { font-size: 30px; }
    .grc-rate-card .grc-rate-value { font-size: 20px; }
}

/* ===== Inline calculator + alerts wrap ===== */
.grc-inline-wrap,
.grc-alerts-wrap {
    max-width: 560px;
    margin: 24px auto;
    padding: 28px 24px 24px;
    background: #FDFCF8;
    border: 1px solid #EBE8DD;
    border-radius: 8px;
    font-family: Georgia, 'Playfair Display', 'Times New Roman', serif;
    color: #1A1918;
    box-sizing: border-box;
}
.grc-inline-title {
    font-size: 26px;
    margin: 4px 0 8px;
    color: #1A1918;
    font-weight: 400;
}
.grc-inline-wrap .grc-eyebrow,
.grc-alerts-wrap .grc-eyebrow { color: #C59B27; }

/* ===== City + geolocation button ===== */
.grc-city-row { display: flex; gap: 8px; align-items: stretch; }
.grc-city-row input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #D1CDBC;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1A1918;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.grc-geo-btn {
    flex: 0 0 auto;
    padding: 0 14px;
    background: #F7EED3;
    color: #735A11;
    border: 1px solid #E8D399;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}
.grc-geo-btn:hover { background: #E8D399; }
.grc-geo-status {
    margin-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #4A4844;
    font-style: italic;
}

@media (max-width: 480px) {
    .grc-city-row { flex-direction: column; }
    .grc-geo-btn { width: 100%; padding: 12px; }
}


/* ===== Mobile gold-rate scrolling topbar ===== */
.grc-mobile-topbar {
    display: none;
}

@media (max-width: 767px) {
    .grc-mobile-topbar {
        display: block;
        width: 100%;
        height: 38px;
        overflow: hidden;
        background: #11100e;
        color: #fff;
        border-bottom: 1px solid rgba(197, 155, 39, .35);
        box-sizing: border-box;
        position: relative;
        z-index: 9999;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        border-radius: 10px;
    }
    .grc-mobile-topbar__viewport {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    .grc-mobile-topbar__track {
        display: flex;
        align-items: center;
        width: max-content;
        min-width: max-content;
        height: 100%;
        animation: grc-mobile-topbar-scroll 5s linear infinite;
        will-change: transform;
    }
    .grc-mobile-topbar__item {
        display: inline-flex;
        align-items: baseline;
        gap: 5px;
        padding: 0 13px;
        white-space: nowrap;
        line-height: 38px;
    }
    .grc-mobile-topbar__carat {
        color: #e4c15b;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: .3px;
    }
    .grc-mobile-topbar__price {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
    }
    .grc-mobile-topbar__unit {
        color: #bcb8ad;
        font-size: 14px;
        font-weight: 500;
    }
    .grc-mobile-topbar__separator {
        color: #c59b27;
        font-size: 18px;
        opacity: .9;
    }
    .grc-mobile-topbar:hover .grc-mobile-topbar__track,
    .grc-mobile-topbar:focus-within .grc-mobile-topbar__track {
        animation-play-state: paused;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grc-mobile-topbar__track {
        animation: none !important;
        transform: none !important;
    }
}

@keyframes grc-mobile-topbar-scroll {
    /*from { transform: translate3d(0, 0, 0); }*/
    /*to { transform: translate3d(-50%, 0, 0); }*/
}
