:root {
    --page-bg: #faf5eb;
    --background-start: #f8e9d4;
    --background-end: #f7f1e6;
    --white: #ffffff;
    --white-80: rgba(255, 255, 255, 0.8);

    --text-primary: #4A2418;
    --text-secondary: #7a5a49;
    --text-muted: #7a6b5d;

    --border-light: #ccc;
    --border-muted: rgba(232, 201, 138, 0.8);

    --gold-sparkle: #C9A24A;
    --gold-lite: #E8C98A;
    --gold: #b57358;
    --gold-dark: #b06f46;
    --neutral-dark: #333333;
    --btn-bg-start: #3D1A15;
    --btn-bg-end: #6B1E2B;
    /* --inner-topbg-end: #5A1A2B; */
    --btn-border: #462117;

    --special-text: #8B6A1F;

    --card-bg: #fff7ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    background: var(--page-bg);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Fraunces", sans-serif;
    font-weight: 400;
}

/* Preloader */
.loader-container {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top-color: var(--neutral-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.main-wrapper {
    display: flex;
    width: 100%;
    max-width: 520px;
    padding: 0 22px;
    position: relative;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
}

.floral-bg-one {
    position: absolute;
    left: 0;
    top: 3rem;
    opacity: .3;
}

.floral-bg-two {
    position: absolute;
    right: 0;
    top: -2rem;
    opacity: 1;
    width: 70px;
}

.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.logo-wrapper .brand-logo {
    width: 100%;
    max-width: 130px;
    height: auto;
}

.seperator-line {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

.seperator-line img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.landing-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, var(--background-start) 0%, var(--white) 52%, var(--background-end) 100%);
    font-family: "IBM Plex Sans", sans-serif;
    padding: 40px 0;
    overflow-x: hidden;
}

.landing-shell {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

.landing-page .brand-logo {
    width: 140px;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.landing-card {
    position: relative;
    border: 1px solid var(--border-muted);
    border-radius: 1.5rem;
    overflow: hidden;
    background: url(../../assets/images/bg-floralstamp.svg) no-repeat right -20px bottom -20px var(--white);
    background-size: 45%;
    box-shadow: 0px 25px 50px -12px rgba(74, 36, 24, .25);
}

.hero-block {
    position: relative;
    min-height: 260px;
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: 0px 25px 50px -12px rgba(74, 36, 24, .25);
}

.hero-block img {
    object-fit: cover;
    height: 100%;
}

.login-heading h2 {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 500;
}

.divider {
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.form-note {
    display: flex;
    gap: .67em;
    align-items: flex-start;
    color: var(--special-text);
    font-size: 0.75rem;
}

.form-note img {
    margin-top: .2rem
}

.custom-form-group {
    border: 2px solid var(--border-muted);
    height: 55px;
    border-radius: 0.5rem;
    gap: .8rem;
}

.custom-form-group select,
.custom-form-group input {
    border: none;
    outline: none;
    height: 100%;
}

.custom-form-group select {
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: 2px solid var(--border-muted);
    padding: 0 0.6rem 0 1rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fraunces", sans-serif;
    font-size: 1rem;
    background: linear-gradient(136deg, var(--btn-bg-start), var(--btn-bg-end));
    border-color: var(--btn-border) !important;
    height: 55px;
}

.btn-primary:hover {
    background: linear-gradient(310deg, var(--btn-bg-start), var(--btn-bg-end));
}

.trusted-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    font-size: .9rem;
    color: var(--special-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .2rem;
    position: relative;
}

.trusted-title img {
    max-width: 75px;
    height: stretch;
}

.trusted-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-muted);
    color: var(--card-text);
    min-height: 100px;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ede2ce;
    border: 1px solid #c3a478;
    border-radius: 50px;
    padding: 10px;
}

.trusted-card p {
    display: flex;
    flex-direction: column;
    font-family: "Fraunces", sans-serif;
    font-size: 0.75rem;
}

.trusted-card p span {
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--special-text);
}

.consent-box {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 0 0 0;
}

.consent-items {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-items .caption {
    font-size: 0.8rem;
    text-align: left;
    padding-left: 0;
}

.consent-items .caption a {
    color: var(--text-primary);
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--btn-bg-end);
    border-radius: 50px;
    border: 2px solid var(--btn-border);
    opacity: .4;
}

.back-btn img {
    width: 24px;
}

.back-btn:hover {
    opacity: .6;
}

.otp-input-section {
    padding: 10px 0px 30px 0px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.otp-box {
    width: 100%;
    max-width: 50px;
    height: 55px;
    border: 1px solid var(--border-muted);
    text-align: center;
    font-size: 1.2rem;
    background-color: var(--white);
    border-radius: .5rem;
    cursor: pointer;
}

.otp-box.active {
    border-color: var(--btn-border);
}

.otp-timer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    font-size: .9rem;
    line-height: 1rem;
    font-weight: 500;
}

/* Inner Page Styles Starts */

.inner-top-section {
    display: flex;
    flex-direction: column;
    height: 340px;
    background: #4D2F1C;
    background: linear-gradient(230deg, rgba(77, 47, 28, 1) 0%, rgba(61, 26, 21, 1) 43%, rgba(107, 30, 43, 1) 100%);
    position: relative;
    justify-content: space-between;
    padding: 30px 0;
}

.inner-page-wrapper {
    min-height: 100vh;
    background: var(--page-bg);
}

/* Header Section */
.inner-header {
    background: linear-gradient(230deg, rgba(77, 47, 28, 1) 0%, rgba(61, 26, 21, 1) 43%, rgba(107, 30, 43, 1) 100%);
    color: var(--white);
    padding: 40px 0 160px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 0 0 4rem 4rem;
}

.inner-header::before {
    content: '';
    position: absolute;
    right: -50px;
    top: 40px;
    width: 305px;
    height: 260px;
    background: url(../../assets/images/bg-floralstamp.svg) no-repeat;
    opacity: 1;
    z-index: 0;
}

.inner-header .container-fluid {
    z-index: 1;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-brand {
    width: 60px;
}

.header-brand img {
    width: 100%;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.logout-btn img {
    width: 16px;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-label {
    color: var(--gold-lite);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.user-name {
    font-size: 1.8rem;
    font-family: "Fraunces", sans-serif;
    font-weight: 500;
    margin: 0;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Main Content Section */
.inner-content {
    padding: 0 0 30px 0;
    transform: translate(0px, -130px);
}

.inner-shell {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Gold Exchange Card */
.gold-exchange-card {
    background: var(--white);
    border: 1px solid var(--border-muted);
    border-radius: 1.5rem;
    padding: 40px 28px;
    box-shadow: 0px 25px 50px -12px rgba(74, 36, 24, .25);
    margin-bottom: 30px;
    position: relative;
}

.gold-exchange-card::before,
.gold-exchange-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
}

.gold-exchange-card::before {
    top: 8px;
    left: 8px;
    background: url(../../assets/images/section-corner-left.svg) no-repeat;
    background-size: cover;
}

.gold-exchange-card::after {
    top: 8px;
    right: 8px;
    background: url(../../assets/images/section-corner-right.svg) no-repeat;
    background-size: cover;
}


.card-title {
    text-align: center;
    font-family: "Fraunces", sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 500;
}

.step-section {
    margin-bottom: 35px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-label {
    display: flex;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--special-text);
    font-weight: 500;
    margin-bottom: 4px;
}

.step-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-family: "Fraunces", sans-serif;
    margin: 0;
}

/* Gold Quantity Input */
.quantity-input-wrapper {
    position: relative;
}

.quantity-input-wrapper input {
    width: 100%;
    height: 55px;
    border: 2px solid var(--border-muted);
    border-radius: 0.5rem;
    padding: 0 16px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: "IBM Plex Sans", sans-serif;
}

.quantity-input-wrapper input::placeholder {
    color: #c3a478;
}

.quantity-input-wrapper input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(181, 115, 88, 0.1);
}

.quantity-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--special-text);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Gold Purity Selection */
.purity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.purity-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid var(--border-muted);
    border-radius: 0.75rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 90px;
    position: relative;
    font-family: "Fraunces", sans-serif;
}

.purity-option:hover {
    border-color: var(--gold);
}

.purity-option.active {
    border-color: var(--gold-sparkle);
    background: linear-gradient(135deg, #fff8f0 0%, #fffbf5 100%);
    box-shadow: 0 0 0 1px var(--gold-sparkle), 0 4px 12px rgba(181, 115, 88, 0.15);
}

.purity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 1.8rem;
    margin-bottom: .5rem;
    opacity: 0.8;
}

.purity-icon img {
    width: 100%
}

.purity-label {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.purity-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--btn-bg-end);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.purity-badge img {
    width: .85rem;
}

.purity-option.active .purity-badge {
    display: flex;
}

/* Estimated Value Display */
.estimated-value-box {
    background: linear-gradient(135deg, var(--btn-bg-start), var(--btn-bg-end));
    border-radius: 1rem;
    padding: 30px;
    text-align: center;
    color: var(--white);
    margin: 30px 0 0 0;
    position: relative;
    overflow: hidden;
}

.estimated-value-box::before,
.estimated-value-box::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
}

.estimated-value-box::before {
    top: 15px;
    left: 15px;
    background: url(../../assets/images/section-corner-left.svg) no-repeat;
    background-size: cover;
}

.estimated-value-box::after {
    top: 15px;
    right: 15px;
    background: url(../../assets/images/section-corner-right.svg) no-repeat;
    background-size: cover;
}

.value-label {
    font-size: 0.75rem;
    color: var(--gold-lite);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 8px;
}

.value-amount {
    font-size: 2.5rem;
    font-family: "Fraunces", sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
}

.value-note {
    font-size: 0.75rem;
    opacity: 0.75;
    line-height: 1.4;
}

/* Store Booking Section */
.store-booking-card {
    background: var(--white);
    border: 1px solid var(--border-muted);
    border-radius: 1.5rem;
    padding: 40px 28px;
    box-shadow: 0px 10px 15px -3px rgb(195 160 150 / 25%);
    margin-bottom: 30px;
    position: relative;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.booking-title h3 {
    font-size: 1.3rem;
    font-family: "Fraunces", sans-serif;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.booking-subtitle {
    font-size: 0.9rem;
    color: var(--special-text);
    margin: 0;
}

.booking-icon-btn {
    width: 50px;
    height: 50px;
    background: #ede2ce;
    border: 1px solid #c3a478;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-icon-btn:hover {
    background: #e8dcc0;
}

.booking-icon-btn img {
    width: 24px;
}

/* Custom Select/Input Styling */
.booking-select-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-muted);
    border-radius: 0.5rem;
    padding: 0;
    height: 55px;
    margin-bottom: 15px;
    overflow: hidden;
}

.booking-select-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    padding-left: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.booking-select-icon img {
    width: 20px;
}

.booking-select-group select,
.booking-select-group input {
    flex: 1;
    border: none;
    padding: 12px 12px 12px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: "IBM Plex Sans", sans-serif;
    cursor: pointer;
    appearance: none;
}

.booking-select-group .form-select:focus {
    border-color: transparent;
    box-shadow: none;
}

.booking-select-group select::-webkit-calendar-picker-indicator {
    display: none;
}

.booking-select-group input::placeholder,
.booking-select-group select::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.booking-select-group:focus-within {
    border-color: var(--gold);
}

/* Confirm Button */
.confirm-btn {
    width: 100%;
    height: 55px;
    background: linear-gradient(136deg, var(--btn-bg-start), var(--btn-bg-end));
    border: 2px solid var(--btn-border);
    color: var(--white);
    font-family: "Fraunces", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.confirm-btn:hover {
    background: linear-gradient(310deg, var(--btn-bg-start), var(--btn-bg-end));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 30, 43, 0.3);
}

/* Trust Section */
.trust-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--special-text);
    font-size: 0.75rem;
    font-weight: 500;
}

.trust-item img {
    width: 16px;
}

.trust-divider {
    color: var(--special-text);
    opacity: 0.5;
}

/* Inner Page Styles Ends */

/* Modal Styles Starts */
.successModalbox {
    border-radius: 1.5rem;
}

.successModalbox .btn-close {
    border: 1px solid var(--btn-border);
    border-radius: 20px;
    padding: .6rem;
    position: absolute;
    top: .8rem;
    right: .8rem;
}

.successModalbox .brand-header {
    margin-top: 6rem !important;
}

.successModalbox .brand-header .brand-logo {
    width: 110px;
}

.successModalbox .success-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin: 0 auto;
    gap: 1rem;
}

.successModalbox .success-message h2 {
    margin-bottom: 0
}

.successModalbox .success-message p {
    line-height: 1.8rem;
    text-align: center;
    color: var(--special-text);
    margin: 0 1rem;
}

/* Modal Styles Ends */

/*! Custom CSS For Checkbox Starts !*/
.checkbox {
    --border: #D1D6EE;
    --border-hover: #BBC1E1;
    --border-active: rgb(163, 45, 57);
    position: relative;
}

.checkbox input,
.checkbox svg {
    width: 21px;
    height: 21px;
    display: block;
}

.checkbox input {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    outline: none;
    background: var(--white);
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    transition: box-shadow 0.3s;
    box-shadow: inset 0 0 0 var(--s, 1px) var(--b, var(--border));
}

.checkbox input:hover {
    --s: 2px;
    --b: var(--border-hover);
}

.checkbox input:checked {
    --b: var(--border-active);
}

.checkbox svg {
    pointer-events: none;
    fill: none;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--stroke, var(--border-active));
    position: absolute;
    top: 0;
    left: 0;
    width: 21px;
    height: 21px;
    transform: scale(var(--scale, 1)) translateZ(0);
}

.checkbox.path input:checked {
    --s: 2px;
    transition-delay: 0.4s;
}

.checkbox.path input:checked+svg {
    --a: 16.1 86.12;
    --o: 102.22;
}

.checkbox.path svg {
    stroke-dasharray: var(--a, 86.12);
    stroke-dashoffset: var(--o, 86.12);
    transition: stroke-dasharray 0.6s, stroke-dashoffset 0.6s;
}

/*! Custom CSS For Checkbox Ends !*/

/* Button Loader CSS Starts */
.dot-loader {
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
    0% {
        box-shadow: 15px 0 rgba(180, 30, 45, 1), -15px 0 rgba(180, 30, 45, .9);
        background: rgb(180, 30, 45)
    }

    33% {
        box-shadow: 15px 0 rgba(180, 30, 45, 1), -15px 0 rgba(212, 53, 69, 0.9);
        background: rgba(226, 40, 40, 0.9)
    }

    66% {
        box-shadow: 15px 0 rgba(228, 152, 159, 0.9), -15px 0 rgba(180, 30, 45, 1);
        background: rgba(226, 40, 40, 0.9)
    }

    100% {
        box-shadow: 15px 0 rgba(180, 30, 45, .9), -15px 0 rgb(227, 86, 100);
        background: rgb(182, 28, 43)
    }
}

/* Button Locader Css Ends */