@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {

    --navy: #092344;

    --ink: #172a40;

    --muted: #647080;

    --gold: #b59a6a;

    --line: #e6e5df;

    --paper: #f7f7f4;

    --white: #fff
}

* {

    box-sizing: border-box
}

body {

    margin: 0;

    background: var(--paper);

    color: var(--ink);

    font: 15px/1.6 "DM Sans", Arial, sans-serif
}

.topbar {
    height: 84px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(calc((100% - 1180px)/2), 5.5%);
    border-bottom: 1px solid rgba(201, 155, 88, .28)
}

.brand {
    display: block;
    width: 190px;
    height: 65px;
    display: flex;
    align-items: center
}

.brand img {
    display: block;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 32px
}

.topbar-caption {
    font-size: 8px;
    letter-spacing: 1.7px;
    color: #c4c8ce
}

.site-header {

    height: 82px;

    background: #fff;

    border-bottom: 1px solid var(--line);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 clamp(20px, 5vw, 72px)
}


/* Brand Styling */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
}

.brand-mark {
    font: 600 29px Georgia;
    letter-spacing: -2px;
}

.brand-mark span {
    color: var(--gold);
    font-size: 20px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    letter-spacing: 2px;
}

.brand-copy strong {
    font-size: 10px;
}

.brand-copy small {
    font-size: 8px;
    color: #7c8188;
    letter-spacing: 2.4px;
}

.header-note {
    font-size: 12px;
    color: var(--muted);
}

/* Back Link Styling */
.back-link {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #f4eee4;
    text-decoration: none;
}

.back-link span {
    color: var(--gold);
    margin-left: 7px;
    font-size: 13px;
}


.header-note i,

.live-pill i {

    display: inline-block;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #6c9b7d;

    margin-right: 8px
}

.page-shell {

    max-width: 1220px;

    margin: auto;

    padding: 44px 24px 70px
}

.hero {

    text-align: center;

    max-width: 740px;

    margin: 0 auto 42px
}

.eyebrow {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.4px;

    color: #9b8053;

    margin: 0 0 10px
}

.hero h1 {

    font: 500 clamp(34px, 5vw, 52px)/1.15 "Playfair Display", Georgia;

    margin: 0 0 15px;

    color: var(--navy)
}

.hero h1 em {

    font-weight: 500;

    color: #9b8053
}

.hero p:last-child {

    color: var(--muted);

    margin: 0;

    line-height: 1.8
}

.designer-layout {

    display: grid;

    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);

    gap: 25px;

    align-items: start
}

.options-panel {

    background: #fff;

    border: 1px solid var(--line);

    border-radius: 12px;

    padding: 10px 30px;

    box-shadow: 0 8px 30px #172a4008
}

.option-section {

    padding: 27px 0 30px;

    border-bottom: 1px solid var(--line)
}

.option-section:last-child {

    border: 0
}

.section-title {

    display: flex;

    gap: 14px;

    margin-bottom: 20px
}

.section-title>span {

    width: 31px;

    height: 31px;

    flex: none;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #f2eee6;

    color: #967b50;

    font-size: 11px;

    font-weight: 700
}

.section-title h2 {

    font: 600 23px/1.25 "Playfair Display", Georgia;

    color: var(--navy);

    margin: 1px 0 5px
}

.section-title p {

    font-size: 13px;

    color: var(--muted);

    margin: 0
}

.choice-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px
}

.choice {

    min-height: 64px;

    border: 1px solid #e4e5e2;

    border-radius: 7px;

    background: #fff;

    color: var(--ink);

    padding: 11px 9px;

    font: 500 12px/1.4 "DM Sans", sans-serif;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    text-align: center;

    transition: .18s
}

.choice:hover {

    border-color: #b8a27d;

    background: #fcfbf8
}

.choice[aria-pressed=true] {

    border: 1.5px solid var(--navy);

    background: #f3f5f7;

    box-shadow: inset 0 0 0 1px var(--navy);

    color: var(--navy)
}

.gem-types {

    grid-template-columns: repeat(3, 1fr);

    margin-bottom: 12px
}

.colour-options {

    grid-template-columns: repeat(3, 1fr)
}

.colour-dot {

    width: 17px;

    height: 17px;

    border-radius: 50%;

    background: var(--swatch);

    border: 1px solid #0002;

    flex: none
}

.compact {

    grid-template-columns: repeat(3, 1fr)
}

.shape-glyph {

    font-size: 23px;

    color: var(--navy);

    display: block
}

.shape-options .choice {

    min-height: 78px;

    flex-direction: column
}

.metal-options .choice {

    min-height: 74px;

    flex-direction: column
}

.metal-swatch {

    width: 35px;

    height: 12px;

    border-radius: 20px;

    background: linear-gradient(90deg, #aaa, #fff, #bbb);

    border: 1px solid #ddd
}

.metal-swatch.rose {

    background: linear-gradient(90deg, #c78378, #ffe0d7, #b96e67)
}

.metal-swatch.yellow {

    background: linear-gradient(90deg, #b59a48, #fff0a8, #c1a24e)
}

.metal-swatch.platinum {

    background: linear-gradient(90deg, #7f8990, #f1f4f5, #9aa3aa)
}

textarea,

input,

select {

    font: inherit
}

textarea {

    width: 100%;

    border: 1px solid #d8d9d5;

    border-radius: 6px;

    padding: 15px;

    resize: vertical;

    outline: none
}

textarea:focus,

input:focus,

select:focus {

    border-color: #9c865e;

    box-shadow: 0 0 0 3px #b59a6a22
}

.upload-area {

    min-height: 150px;

    border: 2px dashed #c9c9c4;

    background: #fafaf8;

    border-radius: 7px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    text-align: center;

    padding: 20px;

    cursor: pointer
}

.upload-area:hover {

    border-color: #a58a5d
}

.upload-icon {

    font-size: 30px;

    color: var(--navy)
}

.upload-area small {

    font-size: 11px;

    color: var(--muted)
}

.upload-area input {

    max-width: 220px;

    font-size: 11px;

    margin-top: 8px
}

.file-list {

    font-size: 12px;

    color: var(--muted);

    margin-top: 9px
}

.preview-column {

    position: sticky;

    top: 20px
}

.preview-card {

    background: #fff;

    border: 1px solid var(--line);

    border-radius: 12px;

    padding: 22px;

    box-shadow: 0 8px 30px #172a4008
}

.preview-topline {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 9px;

    letter-spacing: 1.2px;

    color: #81868b
}

.live-pill {

    color: var(--navy);

    font-weight: 700
}

.gem-stage {

    height: 245px;

    background: radial-gradient(ellipse at center, #fff 0, #f4f3ef 68%, #eeede8 100%);

    border-radius: 8px;

    margin: 18px 0;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    flex-direction: column;

    overflow: hidden
}

.gem-stage img {

    width: 142px;

    height: 142px;

    object-fit: contain;

    position: relative;

    z-index: 1;

    filter: drop-shadow(0 10px 12px #14243a22)
}

.gem-stage>span {

    position: absolute;

    bottom: 13px;

    font-size: 8px;

    letter-spacing: 1.6px;

    color: #8a8c89
}

.summary-list {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 0 15px
}

.summary-list div {

    padding: 10px 0;

    border-bottom: 1px solid #efefec;

    display: flex;

    flex-direction: column;

    gap: 2px
}

.summary-list span {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #8b8f92
}

.summary-list strong {

    font-size: 13px;

    font-weight: 600
}

.disclaimer {

    font-size: 10px;

    color: #858a8d;

    line-height: 1.6;

    margin: 15px 0
}

.primary-button {

    width: 100%;

    border: 0;

    border-radius: 5px;

    background: var(--navy);

    color: white;

    padding: 15px 18px;

    font: 600 13px "DM Sans", sans-serif;

    cursor: pointer
}

.primary-button:hover {

    background: #14365e
}

.primary-button:disabled {

    opacity: .6;

    cursor: wait
}

.primary-button b {

    float: right;

    font-size: 17px
}

.text-button {

    display: block;

    margin: 12px auto 0;

    border: 0;

    background: none;

    color: #66717b;

    text-decoration: underline;

    font-size: 12px;

    cursor: pointer
}

.feedback {

    font-size: 12px;

    text-align: center;

    color: #426b51
}

.trust-note {

    display: flex;

    gap: 12px;

    margin: 16px 4px;

    color: #69737c;

    font-size: 12px
}

.trust-note>b {

    color: var(--gold);

    font-size: 22px
}

.trust-note p {

    margin: 0
}

.trust-note strong {

    color: var(--navy)
}

.site-footer {

    border-top: 1px solid var(--line);

    padding: 22px 25px;

    display: flex;

    justify-content: space-between;

    color: #7d8388;

    font-size: 9px;

    letter-spacing: 1.5px
}

dialog {

    border: 0;

    border-radius: 12px;

    padding: 0;

    width: min(540px, calc(100% - 28px));

    max-height: 90vh;

    box-shadow: 0 20px 80px #0004
}

dialog::backdrop {

    background: #0b1b2dcc;

    backdrop-filter: blur(3px)
}

dialog form {

    padding: 32px;

    position: relative;

    overflow: auto;

    max-height: 90vh
}

dialog h2 {

    font: 600 29px "Playfair Display", Georgia;

    color: var(--navy);

    margin: 0 0 8px
}

.modal-intro {

    color: var(--muted);

    font-size: 13px;

    margin: 0 0 16px
}

.close {

    position: absolute;

    right: 18px;

    top: 12px;

    border: 0;

    background: none;

    font-size: 29px;

    color: #68727a;

    cursor: pointer
}

.modal-summary {

    background: #f5f5f1;

    border-radius: 6px;

    padding: 13px;

    white-space: pre-line;

    font-size: 11px;

    color: #56616b;

    margin-bottom: 17px;

    line-height: 1.65
}

dialog label {

    display: block;

    font-size: 12px;

    font-weight: 600;

    margin: 12px 0;

    color: var(--ink)
}

dialog label>input:not([type=checkbox]),

dialog select {

    display: block;

    width: 100%;

    margin-top: 5px;

    padding: 11px;

    border: 1px solid #d9dbd8;

    border-radius: 5px;

    background: white;

    font-size: 13px
}

.consent {

    display: flex;

    align-items: center;

    gap: 9px;

    font-weight: 400
}

.form-status {

    font-size: 12px;

    text-align: center
}

.form-status.success {

    color: #267345
}

.form-status.error {

    color: #a33434
}

.privacy-note {

    display: block;

    color: #8a8f91;

    font-size: 10px;

    line-height: 1.5;

    margin-top: 12px
}

.hp {

    position: absolute !important;

    left: -10000px !important
}

.hp input {

    width: 1px
}

.designer-layout {

    padding-bottom: 15px
}

@media(max-width:820px) {

    .page-shell {

        padding: 32px 14px 45px
    }

    .designer-layout {

        grid-template-columns: 1fr
    }

    .preview-column {

        position: static;

        grid-row: 1
    }

    .options-panel {

        padding: 5px 19px
    }

    .preview-card {

        padding: 17px
    }

    .gem-stage {

        height: 180px
    }

    .gem-stage img {

        width: 120px;

        height: 120px
    }

    .hero {

        margin-bottom: 25px
    }

    .hero p:last-child {

        font-size: 13px
    }

    .section-title h2 {

        font-size: 21px
    }

    .site-header {

        height: 70px;

        padding: 0 18px
    }

}

@media(max-width:420px) {

    .choice-grid {

        gap: 7px
    }

    .choice {

        font-size: 11px;

        padding: 9px 5px;

        min-height: 58px
    }

    .compact {

        grid-template-columns: repeat(2, 1fr)
    }

    .shape-options {

        grid-template-columns: repeat(3, 1fr)
    }

    .options-panel {

        padding: 2px 14px
    }

    .section-title {

        gap: 10px
    }

    .section-title p {

        font-size: 12px
    }

    .summary-list {

        gap: 0 10px
    }

}

/* Refined visual choice cards */

.summary-intro {

    padding: 18px 0 16px;

    text-align: center;

    border-bottom: 1px solid var(--line);

    margin: 8px 0 10px
}

.summary-ornament {

    color: var(--gold);

    font-size: 18px
}

.summary-intro h2 {

    font: 600 23px/1.25 "Playfair Display", Georgia;

    color: var(--navy);

    margin: 4px 0
}

.summary-intro p {

    font-size: 11px;

    color: var(--muted);

    margin: 0
}

.choice {

    min-height: unset;

    justify-content: flex-start;

    text-align: left;

    padding: 12px;

    gap: 10px
}

.choice-copy {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 3px;

    min-width: 0
}

.choice-copy strong,

.design-choice strong {

    font-size: 12px;

    font-weight: 600;

    line-height: 1.35
}

.choice-copy small,

.design-choice small {

    font-size: 10px;

    line-height: 1.45;

    color: var(--muted);

    font-weight: 400
}

.choice-media {

    width: 54px;

    height: 54px;

    flex: none;

    border-radius: 6px;

    background: #f7f6f2;

    display: grid;

    place-items: center;

    overflow: hidden
}

.choice-media img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 5px
}

.choice-media.image-missing {

    display: none
}

.gem-card,

.metal-card {

    min-height: 104px;

    align-items: center
}

.gem-card .choice-media,

.metal-card .choice-media {

    width: 76px;

    height: 76px;

    background: #faf9f6
}

.gem-card .choice-media img,

.metal-card .choice-media img {

    padding: 3px
}

.icon-choice {

    min-height: 88px;

    align-items: center
}

.icon-choice .choice-media {

    width: 46px;

    height: 46px;

    background: transparent
}

.icon-choice .choice-media img {

    padding: 2px
}

.shape-options,

.compact {

    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.colour-options {

    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.colour-choice {

    justify-content: flex-start;

    min-height: 48px
}

.colour-choice span {

    font-size: 11px
}

.design-choice {

    min-height: 78px;

    align-items: flex-start;

    flex-direction: column;

    justify-content: center;

    gap: 4px
}

.design-choice strong {

    font-size: 11px
}

.design-choice small {

    font-size: 10px
}

.choice[aria-pressed=true] .choice-media {

    background: #f0eee8
}

.choice[aria-pressed=true] .choice-copy small,

.choice[aria-pressed=true] small {

    color: #536174
}

.summary-list {

    grid-template-columns: 1fr 1fr;

    gap: 0 18px
}

.summary-list div {

    padding: 11px 0
}

.disclaimer {

    background: #f7f6f2;

    border-left: 2px solid var(--gold);

    padding: 11px 13px;

    margin: 17px 0;

    font-size: 10px
}

.preview-card {

    padding: 24px
}

.preview-topline {

    padding-bottom: 10px;

    border-bottom: 1px solid var(--line)
}

@media(max-width:820px) {

    .preview-column {

        grid-row: auto
    }

    .summary-intro {

        padding: 8px 0 12px
    }

    .preview-card {

        padding: 18px
    }

    .designer-layout {

        gap: 16px
    }

}

@media(max-width:520px) {

    .gem-types {

        grid-template-columns: 1fr
    }

    .gem-card,

    .metal-card {

        min-height: 88px
    }

    .gem-card .choice-media,

    .metal-card .choice-media {

        width: 64px;

        height: 64px
    }

    .shape-options,

    .compact {

        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .icon-choice {

        min-height: 78px;

        padding: 9px
    }

    .icon-choice .choice-media {

        width: 38px;

        height: 38px
    }

    .choice-copy small {

        font-size: 9px
    }

    .colour-options {

        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .summary-list {

        grid-template-columns: 1fr 1fr
    }

}

/* =========================================================

   R&Q Ring Designer - Mobile Cards (All option sections)

   Stone Shape / Carat Weight / Setting Style / Ring Design / Metal

   ========================================================= */

@media screen and (max-width: 600px) {

    /* ---------- Common 2-column layout ---------- */

    #shapes,

    #weights,

    #settings,

    #designs,

    #metals {

        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;

        align-items: stretch !important;

    }

    /* ---------- Common card ---------- */

    #shapes>.choice,

    #weights>.choice,

    #settings>.choice,

    #designs>.choice,

    #metals>.choice,

    #designs>.design-choice {

        width: 100% !important;

        min-width: 0 !important;

        height: 100% !important;

        min-height: 190px !important;

        padding: 14px 10px !important;

        box-sizing: border-box !important;

        border-radius: 10px !important;

        background: #fff !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        justify-content: flex-start !important;

        text-align: center !important;

        gap: 8px !important;

        overflow: hidden !important;

    }

    /* selected state */

    #shapes>.choice[aria-pressed="true"],

    #weights>.choice[aria-pressed="true"],

    #settings>.choice[aria-pressed="true"],

    #designs>.choice[aria-pressed="true"],

    #metals>.choice[aria-pressed="true"],

    #designs>.design-choice[aria-pressed="true"] {

        border: 2px solid #344e70 !important;

        box-shadow: inset 0 0 0 1px #344e70 !important;

        background: #f8fafc !important;

    }

    /* ---------- Media area ---------- */

    #shapes .choice-media,

    #weights .choice-media,

    #settings .choice-media,

    #designs .choice-media,

    #metals .choice-media,

    #designs .design-choice .choice-media {

        width: 100% !important;

        max-width: 120px !important;

        height: 84px !important;

        flex: 0 0 84px !important;

        margin: 0 auto 4px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        overflow: visible !important;

        background: transparent !important;

        border-radius: 6px !important;

    }

    /* ---------- Images / SVG ---------- */

    #shapes .choice-media img,

    #weights .choice-media img,

    #settings .choice-media img,

    #designs .choice-media img,

    #metals .choice-media img,

    #designs .design-choice .choice-media img,

    #shapes>.choice img,

    #weights>.choice img,

    #settings>.choice img,

    #designs>.choice img,

    #metals>.choice img,

    #designs>.design-choice img {

        display: block !important;

        width: auto !important;

        max-width: 100% !important;

        height: auto !important;

        max-height: 66px !important;

        object-fit: contain !important;

        object-position: center center !important;

        padding: 4px !important;

        margin: 0 auto !important;

    }

    /* ---------- Copy area ---------- */

    #shapes .choice-copy,

    #weights .choice-copy,

    #settings .choice-copy,

    #designs .choice-copy,

    #metals .choice-copy,

    #designs .design-choice .choice-copy {

        width: 100% !important;

        min-width: 0 !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        justify-content: flex-start !important;

        text-align: center !important;

        gap: 6px !important;

    }

    /* fallback if title/desc are directly inside card */

    #shapes>.choice,

    #weights>.choice,

    #settings>.choice,

    #designs>.choice,

    #metals>.choice,

    #designs>.design-choice {

        text-align: center !important;

    }

    /* ---------- Titles ---------- */

    #shapes .choice-copy strong,

    #weights .choice-copy strong,

    #settings .choice-copy strong,

    #designs .choice-copy strong,

    #metals .choice-copy strong,

    #shapes>.choice strong,

    #weights>.choice strong,

    #settings>.choice strong,

    #designs>.choice strong,

    #metals>.choice strong,

    #designs>.design-choice strong {

        display: block !important;

        font-size: 12px !important;

        font-weight: 700 !important;

        line-height: 1.4 !important;

        color: #0b2342 !important;

        text-align: center !important;

        word-break: break-word !important;

        overflow-wrap: break-word !important;

        margin: 0 !important;

    }

    /* ---------- Description ---------- */

    #shapes .choice-copy small,

    #weights .choice-copy small,

    #settings .choice-copy small,

    #designs .choice-copy small,

    #metals .choice-copy small,

    #shapes>.choice small,

    #weights>.choice small,

    #settings>.choice small,

    #designs>.choice small,

    #metals>.choice small,

    #designs>.design-choice small {

        display: block !important;

        font-size: 10px !important;

        font-weight: 400 !important;

        line-height: 1.55 !important;

        color: #687786 !important;

        text-align: center !important;

        word-break: break-word !important;

        overflow-wrap: break-word !important;

        margin: 0 !important;

    }

    /* ---------- Section-specific fine tuning ---------- */

    /* Stone Shape */

    #shapes>.choice {

        min-height: 176px !important;

    }

    #shapes .choice-media,

    #shapes>.choice .choice-media {

        height: 72px !important;

        flex-basis: 72px !important;

        max-width: 94px !important;

    }

    #shapes .choice-media img,

    #shapes>.choice img {

        max-height: 52px !important;

    }

    /* Carat Weight */

    #weights>.choice {

        min-height: 138px !important;

        flex-direction: row !important;

        align-items: flex-start !important;

        justify-content: flex-start !important;

        text-align: left !important;

        gap: 10px !important;

        padding: 12px 10px !important;

    }

    #weights .choice-media,

    #weights>.choice .choice-media {

        width: 34px !important;

        min-width: 34px !important;

        max-width: 34px !important;

        height: 34px !important;

        flex: 0 0 34px !important;

        margin: 2px 0 0 0 !important;

    }

    #weights .choice-media img,

    #weights>.choice img {

        max-height: 28px !important;

        max-width: 28px !important;

        padding: 0 !important;

    }

    #weights .choice-copy,

    #weights>.choice .choice-copy {

        align-items: flex-start !important;

        text-align: left !important;

        gap: 4px !important;

    }

    #weights .choice-copy strong,

    #weights>.choice strong {

        text-align: left !important;

        font-size: 12px !important;

    }

    #weights .choice-copy small,

    #weights>.choice small {

        text-align: left !important;

        font-size: 9.8px !important;

        line-height: 1.45 !important;

    }

    /* Setting Style */

    #settings>.choice {

        min-height: 210px !important;

    }

    #settings .choice-media,

    #settings>.choice .choice-media {

        height: 88px !important;

        flex-basis: 88px !important;

        max-width: 112px !important;

    }

    #settings .choice-media img,

    #settings>.choice img {

        max-height: 60px !important;

    }

    /* Ring Design */

    #designs>.choice,

    #designs>.design-choice {

        min-height: 210px !important;

    }

    #designs .choice-media,

    #designs>.choice .choice-media,

    #designs>.design-choice .choice-media {

        height: 88px !important;

        flex-basis: 88px !important;

        max-width: 114px !important;

    }

    #designs .choice-media img,

    #designs>.choice img,

    #designs>.design-choice img {

        max-height: 60px !important;

    }

    /* side-view ring design icons not cropped */

    #designs img[src*="cathedral"],

    #designs img[src*="trellis"],

    #designs img[src*="french-basket"],

    #designs img[src*="split-shank"],

    #designs img[src*="custom"] {

        max-height: 56px !important;

        transform: translateY(-2px);

    }

    /* Metal */

    #metals>.choice {

        min-height: 205px !important;

    }

    #metals .choice-media,

    #metals>.choice .choice-media {

        height: 96px !important;

        flex-basis: 96px !important;

        max-width: 126px !important;

    }

    #metals .choice-media img,

    #metals>.choice img {

        max-height: 78px !important;

    }

}

/* ---------- Extra small phones ---------- */

@media screen and (max-width: 380px) {

    #shapes,

    #weights,

    #settings,

    #designs,

    #metals {

        gap: 10px !important;

    }

    #shapes>.choice,

    #weights>.choice,

    #settings>.choice,

    #designs>.choice,

    #metals>.choice,

    #designs>.design-choice {

        padding: 12px 8px !important;

    }

    #weights>.choice {

        padding: 10px 8px !important;

    }

    #shapes .choice-copy strong,

    #weights .choice-copy strong,

    #settings .choice-copy strong,

    #designs .choice-copy strong,

    #metals .choice-copy strong,

    #shapes>.choice strong,

    #weights>.choice strong,

    #settings>.choice strong,

    #designs>.choice strong,

    #metals>.choice strong,

    #designs>.design-choice strong {

        font-size: 11px !important;

    }

    #shapes .choice-copy small,

    #weights .choice-copy small,

    #settings .choice-copy small,

    #designs .choice-copy small,

    #metals .choice-copy small,

    #shapes>.choice small,

    #weights>.choice small,

    #settings>.choice small,

    #designs>.choice small,

    #metals>.choice small,

    #designs>.design-choice small {

        font-size: 9px !important;

    }

}

/* =========================================

   R&Q - Mobile Ring Image Size Fix

   Setting Style + Ring Design ONLY

   ========================================= */

@media screen and (max-width: 600px) {

    /* Setting Style & Ring Design image areas */

    #settings .choice-media,

    #designs .choice-media {

        width: 100% !important;

        max-width: 100% !important;

        height: 120px !important;

        min-height: 120px !important;

        flex: 0 0 120px !important;

        display: flex !important;

        justify-content: center !important;

        align-items: center !important;

        margin: 0 auto 6px !important;

        padding: 0 !important;

        background: transparent !important;

        overflow: visible !important;

    }

    /* Make ring SVGs larger */

    #settings .choice-media img,

    #designs .choice-media img {

        width: 128px !important;

        height: 128px !important;

        max-width: 100% !important;

        max-height: none !important;

        object-fit: contain !important;

        object-position: center !important;

        padding: 0 !important;

        margin: 0 auto !important;

        transform: none !important;

    }

    /* Keep text below the image */

    #settings .choice,

    #designs .choice {

        min-height: 220px !important;

        height: 100% !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        padding: 12px 9px 16px !important;

        overflow: hidden !important;

    }

    /* Text spacing */

    #settings .choice-copy,

    #designs .choice-copy {

        width: 100% !important;

        text-align: center !important;

        align-items: center !important;

        gap: 6px !important;

    }

    /* Ring Design title and description */

    #designs .choice>strong,

    #designs .choice>small {

        text-align: center !important;

    }

}

/* ============================================

   R&Q - Mobile Refinement

   Origin | Stone Shape | Carat Weight

   ============================================ */

@media screen and (max-width: 600px) {

    /* COMMON GRID */

    #origins,

    #shapes,

    #weights {

        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;

        align-items: stretch !important;

    }

    /* COMMON CARDS */

    #origins>.choice,

    #shapes>.choice,

    #weights>.choice {

        width: 100% !important;

        min-width: 0 !important;

        height: auto !important;

        box-sizing: border-box !important;

        border-radius: 10px !important;

        overflow: hidden !important;

        padding: 12px 10px !important;

    }

    /* COMMON TEXT */

    #origins .choice-copy,

    #shapes .choice-copy,

    #weights .choice-copy {

        min-width: 0 !important;

        width: 100% !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 5px !important;

    }

    #origins .choice-copy strong,

    #shapes .choice-copy strong,

    #weights .choice-copy strong {

        font-size: 12px !important;

        font-weight: 600 !important;

        line-height: 1.4 !important;

        color: #0b2342 !important;

        overflow-wrap: break-word !important;

    }

    #origins .choice-copy small,

    #shapes .choice-copy small,

    #weights .choice-copy small {

        font-size: 10px !important;

        line-height: 1.5 !important;

        color: #687786 !important;

        overflow-wrap: break-word !important;

    }

    /* COMMON IMAGE FIT */

    #origins .choice-media img,

    #shapes .choice-media img,

    #weights .choice-media img {

        display: block !important;

        width: 100% !important;

        height: 100% !important;

        max-width: 100% !important;

        max-height: 100% !important;

        object-fit: contain !important;

        object-position: center !important;

        margin: 0 !important;

        transform: none !important;

    }

    /* =========================================

     1. CENTRE STONE ORIGIN

     ========================================= */

    #origins>.choice {

        min-height: 108px !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        justify-content: flex-start !important;

        gap: 8px !important;

        text-align: left !important;

    }

    #origins .choice-media {

        width: 42px !important;

        min-width: 42px !important;

        max-width: 42px !important;

        height: 46px !important;

        flex: 0 0 42px !important;

        margin: 0 !important;

        padding: 2px !important;

        overflow: visible !important;

    }

    #origins .choice-copy {

        align-items: flex-start !important;

        text-align: left !important;

    }

    #origins .choice-copy strong,

    #origins .choice-copy small {

        text-align: left !important;

    }

    /* =========================================

     2. STONE SHAPE

     ========================================= */

    #shapes>.choice {

        min-height: 165px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        justify-content: flex-start !important;

        gap: 8px !important;

        text-align: center !important;

        padding: 14px 10px !important;

    }

    #shapes .choice-media {

        width: 70px !important;

        max-width: 70px !important;

        height: 68px !important;

        min-height: 68px !important;

        flex: 0 0 68px !important;

        margin: 0 auto 2px !important;

        padding: 3px !important;

        background: transparent !important;

        overflow: visible !important;

    }

    #shapes .choice-copy {

        align-items: center !important;

        text-align: center !important;

    }

    #shapes .choice-copy strong,

    #shapes .choice-copy small {

        text-align: center !important;

    }

    /* =========================================

     3. CARAT WEIGHT

     ========================================= */

    #weights>.choice {

        min-height: 104px !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        justify-content: flex-start !important;

        gap: 9px !important;

        text-align: left !important;

        padding: 12px 9px !important;

    }

    #weights .choice-media {

        width: 36px !important;

        min-width: 36px !important;

        max-width: 36px !important;

        height: 40px !important;

        min-height: 0 !important;

        flex: 0 0 36px !important;

        margin: 0 !important;

        padding: 2px !important;

        background: transparent !important;

        overflow: visible !important;

    }

    #weights .choice-copy {

        align-items: flex-start !important;

        text-align: left !important;

    }

    #weights .choice-copy strong {

        font-size: 11.5px !important;

        text-align: left !important;

    }

    #weights .choice-copy small {

        font-size: 9.5px !important;

        text-align: left !important;

    }

}

/* EXTRA SMALL MOBILE SCREENS */

@media screen and (max-width: 360px) {

    #origins,

    #shapes,

    #weights {

        gap: 8px !important;

    }

    #origins>.choice,

    #shapes>.choice,

    #weights>.choice {

        padding-left: 8px !important;

        padding-right: 8px !important;

    }

    #origins .choice-media {

        width: 34px !important;

        min-width: 34px !important;

        max-width: 34px !important;

        flex-basis: 34px !important;

    }

    #weights .choice-media {

        width: 30px !important;

        min-width: 30px !important;

        max-width: 30px !important;

        flex-basis: 30px !important;

    }

}

/* =========================================

   R&Q - Carat Weight Mobile Refinement

   ========================================= */

@media screen and (max-width: 600px) {

    /* Two cards per row */

    #weights {

        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;

        align-items: stretch !important;

    }

    /* Compact balanced cards */

    #weights>.choice {

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        justify-content: flex-start !important;

        width: 100% !important;

        min-width: 0 !important;

        height: auto !important;

        min-height: 96px !important;

        padding: 12px 10px !important;

        gap: 9px !important;

        background: #fff !important;

        border: 1px solid #e6e5e1;

        border-radius: 10px !important;

        box-sizing: border-box !important;

        overflow: hidden !important;

        text-align: left !important;

    }

    /* Larger gemstone icon */

    #weights .choice-media {

        width: 42px !important;

        min-width: 42px !important;

        max-width: 42px !important;

        height: 48px !important;

        min-height: 0 !important;

        flex: 0 0 42px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        padding: 0 !important;

        margin: 0 !important;

        background: transparent !important;

        overflow: visible !important;

    }

    #weights .choice-media img {

        display: block !important;

        width: 42px !important;

        height: 42px !important;

        max-width: 100% !important;

        max-height: 100% !important;

        object-fit: contain !important;

        padding: 0 !important;

        margin: 0 !important;

        transform: none !important;

    }

    /* Text alignment */

    #weights .choice-copy {

        display: flex !important;

        flex: 1 1 0 !important;

        flex-direction: column !important;

        align-items: flex-start !important;

        justify-content: center !important;

        min-width: 0 !important;

        width: auto !important;

        gap: 5px !important;

        text-align: left !important;

    }

    /* Carat title */

    #weights .choice-copy strong {

        font-size: 11.5px !important;

        font-weight: 600 !important;

        line-height: 1.35 !important;

        color: #0b2342 !important;

        text-align: left !important;

        overflow-wrap: break-word;

        margin: 0 !important;

    }

    /* Description */

    #weights .choice-copy small {

        font-size: 10px !important;

        font-weight: 400 !important;

        line-height: 1.45 !important;

        color: #687786 !important;

        text-align: left !important;

        overflow-wrap: break-word;

        margin: 0 !important;

    }

    /* Selected card */

    #weights>.choice[aria-pressed="true"] {

        border: 2px solid #405b7e !important;

        background: #f7f8fa !important;

        box-shadow: inset 0 0 0 1px #405b7e;

    }

    /* Extra small mobile */

    @media (max-width: 360px) {

        #weights {

            gap: 8px !important;

        }

        #weights>.choice {

            padding: 10px 7px !important;

            gap: 6px !important;

        }

        #weights .choice-media {

            width: 32px !important;

            min-width: 32px !important;

            max-width: 32px !important;

            flex-basis: 32px !important;

        }

        #weights .choice-media img {

            width: 32px !important;

            height: 32px !important;

        }

        #weights .choice-copy strong {

            font-size: 10.5px !important;

        }

        #weights .choice-copy small {

            font-size: 9px !important;

        }

    }

}

/* =========================================

   R&Q - Desktop Card Design Refinement

   Setting Style | Ring Design | Metal

   ========================================= */

@media screen and (min-width: 821px) {

    /* GRID LAYOUT */

    #settings,

    #designs {

        display: grid !important;

        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 12px !important;

        align-items: stretch !important;

    }

    /* Metal - Balanced 2x2 layout */

    #metals {

        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;

    }

    /* CARDS */

    #settings>.choice,

    #designs>.choice,

    #metals>.choice {

        width: 100% !important;

        min-width: 0 !important;

        height: 100% !important;

        min-height: 172px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        justify-content: flex-start !important;

        padding: 14px 15px 16px !important;

        gap: 0 !important;

        text-align: left !important;

        border-radius: 8px !important;

        box-sizing: border-box !important;

    }

    /* IMAGE CONTAINERS */

    #settings .choice-media,

    #designs .choice-media,

    #metals .choice-media {

        width: 100% !important;

        max-width: none !important;

        height: 82px !important;

        min-height: 82px !important;

        flex: 0 0 82px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        margin: 0 auto 9px !important;

        padding: 0 !important;

        background: transparent !important;

        overflow: visible !important;

    }

    /* SETTING STYLE & RING DESIGN SVGs */

    #settings .choice-media img,

    #designs .choice-media img {

        display: block !important;

        width: 128px !important;

        height: 78px !important;

        max-width: 100% !important;

        max-height: 78px !important;

        object-fit: contain !important;

        object-position: center !important;

        padding: 0 !important;

        margin: 0 auto !important;

        transform: none !important;

    }

    /* METAL RING IMAGES */

    #metals .choice-media {

        height: 92px !important;

        min-height: 92px !important;

        flex-basis: 92px !important;

    }

    #metals .choice-media img {

        width: 100px !important;

        height: 90px !important;

        max-width: 100% !important;

        max-height: 90px !important;

        object-fit: contain !important;

        padding: 0 !important;

        margin: 0 auto !important;

    }

    /* TEXT AREA */

    #settings .choice-copy,

    #designs .choice-copy,

    #metals .choice-copy {

        display: flex !important;

        flex-direction: column !important;

        align-items: flex-start !important;

        width: 100% !important;

        min-width: 0 !important;

        gap: 5px !important;

        text-align: left !important;

    }

    /* TITLES */

    #settings .choice-copy strong,

    #designs .choice-copy strong,

    #metals .choice-copy strong {

        display: block !important;

        font-size: 13px !important;

        font-weight: 600 !important;

        line-height: 1.4 !important;

        color: #0b2342 !important;

        text-align: left !important;

        margin: 0 !important;

    }

    /* DESCRIPTIONS */

    #settings .choice-copy small,

    #designs .choice-copy small,

    #metals .choice-copy small {

        display: block !important;

        font-size: 11px !important;

        font-weight: 400 !important;

        line-height: 1.55 !important;

        color: #687786 !important;

        text-align: left !important;

        margin: 0 !important;

    }

    /* SELECTED CARD - KEEP NAVY STYLE */

    #settings>.choice[aria-pressed="true"],

    #designs>.choice[aria-pressed="true"],

    #metals>.choice[aria-pressed="true"] {

        border: 2px solid #344e70 !important;

        background: #f6f8fa !important;

        box-shadow: inset 0 0 0 1px #344e70;

    }

    /* SELECTED IMAGE BACKGROUND */

    #settings .choice[aria-pressed="true"] .choice-media,

    #designs .choice[aria-pressed="true"] .choice-media,

    #metals .choice[aria-pressed="true"] .choice-media {

        background: transparent !important;

    }

}

/* ============================================================
   R&Q Centre Stone Colours — 14 original faceted gemstone SVGs
   Desktop 3 cards per row; mobile 2 cards per row.
   All gemstone art is inline SVG from js/app.js.
   ============================================================ */
#gemTypes.gem-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
    align-items: stretch;
}

#gemTypes>.gem-colour-choice {
    min-width: 0;
    min-height: 140px;
    padding: 14px 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: #fff;
    border: 1px solid #e4e2dc;
    border-radius: 10px;
    color: #132943;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#gemTypes>.gem-colour-choice:hover {
    border-color: #b69768;
    background: #fdfbf8;
}

#gemTypes>.gem-colour-choice[aria-pressed="true"] {
    border: 2px solid #344e70;
    background: #f5f7f9;
    box-shadow: inset 0 0 0 1px #344e70;
}

#gemTypes>.gem-colour-choice:focus-visible {
    outline: 3px solid #b69768;
    outline-offset: 3px;
}

#gemTypes .gem-colour-visual {
    display: grid;
    place-items: center;
    width: 72px;
    height: 80px;
    flex: 0 0 80px;
    background: transparent;
}

#gemTypes .gem-colour-gem {
    width: 65px;
    height: 78px;
    display: block;
    filter: drop-shadow(0 3px 3px rgba(15, 35, 55, .13));
}

#gemTypes .gem-colour-label {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: #142c48;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    #gemTypes.gem-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #gemTypes>.gem-colour-choice {
        min-height: 130px;
        padding: 12px 8px;
        gap: 8px;
    }

    #gemTypes .gem-colour-visual {
        height: 70px;
        flex-basis: 70px;
    }

    #gemTypes .gem-colour-gem {
        width: 56px;
        height: 69px;
    }

    #gemTypes .gem-colour-label {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #gemTypes>.gem-colour-choice {
        transition: none;
    }
}


/* =========================================
   R&Q - Elegant Mobile Header
   ========================================= */

@media screen and (max-width: 600px) {

    .topbar {
        width: 100% !important;
        min-height: 78px !important;
        height: auto !important;
        padding: 12px 16px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;

        background: #0b2342 !important;
        border-bottom: 1px solid #b59a6a55;
        box-sizing: border-box;
    }

    /* Logo container */
    .topbar .brand {
        display: flex !important;
        align-items: center !important;
        flex: 0 1 175px !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* R&Q Logo */
    .topbar .brand img {
        display: block !important;
        width: 100% !important;
        max-width: 175px !important;
        height: auto !important;
        max-height: 58px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    /* Right side */
    .topbar-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        gap: 0 !important;
    }

    /* Hide long tagline on mobile */
    .topbar-caption {
        display: none !important;
    }

    /* Contact Us button */
    .topbar .back-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        padding: 10px 11px !important;

        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-decoration: none !important;

        background: transparent !important;
        border: 1px solid #b59a6a !important;
        border-radius: 5px !important;
    }

    .topbar .back-link span {
        color: #cda76d !important;
        font-size: 14px !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
}

/* Extra small mobile screens */
@media screen and (max-width: 380px) {

    .topbar {
        padding: 10px 12px !important;
        gap: 8px !important;
        min-height: 70px !important;
    }

    .topbar .brand {
        flex-basis: 150px !important;
    }

    .topbar .brand img {
        max-width: 150px !important;
    }

    .topbar .back-link {
        font-size: 9px !important;
        padding: 9px 8px !important;
        gap: 4px !important;
    }
}