/* shwash-multistep-gift-card.css */

.sgc-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
    background: transparent;
    /* border-radius: 8px; */
    overflow: hidden;
}

/* Common Typography */
.sgc-container h2,
.sgc-container h3,
.sgc-container h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.sgc-container h3 {
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
}

.sgc-container p {
    font-size: 14px;
    color: #aaaaaa;
    line-height: 1.5;
}

/* Step 1: Accordions */
.sgc-accordion-item {
    border: 1px solid #333;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #111;
}

.sgc-accordion-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 18px;
    background: #1a1a1a;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease;
}

.sgc-accordion-header:hover {
    background: #222;
}

.sgc-accordion-header::after {
    content: '\2304';
    /* Down chevron */
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #888;
}

.sgc-accordion-item.active .sgc-accordion-header {
    color: #cd9f52;
    border-bottom: 1px solid #333;
}

.sgc-accordion-item.active .sgc-accordion-header::after {
    transform: rotate(180deg);
    color: #cd9f52;
}

.sgc-accordion-content {
    display: none;
    padding: 0;
    background: transparent;
}

.sgc-accordion-item.active .sgc-accordion-content {
    display: block;
}

/* Products inside Accordion */
.sgc-product {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #333;
}

.sgc-product:first-child {
    border-top: none;
}

.sgc-product-info {
    flex: 1;
    padding-right: 20px;
}

.sgc-product-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #fff;
}

.sgc-product-desc {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 0;
    white-space: pre-line;
}

.sgc-product-action {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sgc-product-price {
    font-weight: 600;
    font-size: 16px;
    margin-top: 6px;
    color: #cd9f52;
}

.sgc-btn {
    background: #cd9f52;
    color: #fff !important;
    border: 1px solid #cd9f52 !important;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
    font-size: 14px;
}

.sgc-btn:hover {
    background: #b58c48 !important;
}

.sgc-btn:focus {
    background: #b58c48;
}

.sgc-btn-large {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    margin-top: 10px;
}

/* Step 2: Customization Form */
.sgc-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sgc-step.active {
    display: block;
}

.sgc-back-btn {
    background: none;
    border: none;
    color: #cd9f52;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sgc-back-btn:hover {
    text-decoration: underline;
}

.sgc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.sgc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.sgc-dot.active {
    background: #cd9f52;
}

/* Form Elements */
.sgc-form-group {
    margin-bottom: 20px;
}

.sgc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ccc;
}

.sgc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.sgc-input:focus {
    outline: none;
    border-color: #cd9f52;
    box-shadow: 0 0 0 2px rgba(205, 159, 82, 0.2);
}

textarea.sgc-input {
    resize: vertical;
    min-height: 80px;
}

/* Toggle Buttons */
.sgc-toggle-group {
    display: flex;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
}

.sgc-toggle-btn {
    flex: 1;
    background: #111;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    color: #fff !important;
    border-color: #cd9f52 !important;
}

.sgc-toggle-btn:focus {
    background: rgba(205, 159, 82, 0.1) !important;
}

.sgc-toggle-btn.active {
    background: rgba(205, 159, 82, 0.1);
    color: #cd9f52;
    font-weight: 600;
    background-color: rgba(205, 159, 82, 0.1);
}

.sgc-toggle-btn:hover {
    background-color: #cd9f52 !important;
}

.sgc-toggle-btn:not(:last-child) {
    border-right: 1px solid #444;
}

/* Specific elements */
.sgc-optional-label {
    float: right;
    font-weight: 400;
    color: #888;
}

.sgc-input-group {
    display: flex;
    gap: 10px;
}

.sgc-input-group .sgc-input {
    flex: 2;
}

.sgc-input-group select {
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Amount specific styles */
.sgc-product-custom-amount {
    align-items: center;
}

.sgc-product-custom-amount .sgc-product-info {
    flex: 0 0 auto;
    padding-right: 15px;
}

.sgc-product-custom-amount .sgc-product-action {
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

.sgc-custom-amount-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0 10px;
    background: #111;
}

.sgc-custom-amount-wrapper:focus-within {
    border-color: #cd9f52;
    box-shadow: 0 0 0 2px rgba(205, 159, 82, 0.2);
}

.sgc-currency-symbol {
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
}

.sgc-custom-price-input {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px !important;
    width: 80px !important;
    text-align: right;
}

.sgc-custom-price-input:focus {
    outline: none !important;
}

/* Hide number input spinners */
.sgc-custom-price-input::-webkit-outer-spin-button,
.sgc-custom-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sgc-custom-price-input[type=number] {
    -moz-appearance: textfield;
}

/* Custom Date */
.sgc-date-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sgc-custom-date-input {
    width: 100%;
}

/* ── GIFT CARD PREVIEW STYLES ── */
:root {
    --black:   #0a0a0a;
    --charcoal: #111111;
    --gold:    #C9A84C;
    --gold-lt: #E2C97E;
    --gold-dk: #9B7A2F;
    --cream:   #f7f3ec;
    --white:   #ffffff;
    --muted:   #555555;
}

.card-wrap {
    perspective: 1200px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.card {
    width: 420px;
    height: 265px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.18);
    background: var(--charcoal);
    transition: transform 0.6s cubic-bezier(.23,1,.32,1);
}

.card:hover { 
    transform: rotateY(-6deg) rotateX(3deg) scale(1.015); 
}

/* background texture */
.card-bg {
    position: absolute; 
    inset: 0;
    background:
      radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 55%),
      radial-gradient(ellipse at 10% 85%, rgba(201,168,76,0.08) 0%, transparent 45%),
      linear-gradient(135deg, #151515 0%, #0a0a0a 100%);
}

/* diagonal shine lines */
.card-lines {
    position: absolute; 
    inset: 0; 
    overflow: hidden; 
    opacity: 0.06;
}

.card-lines::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 2px;
    background: var(--gold);
    top: 35%;
    left: -50%;
    transform: rotate(-18deg);
    box-shadow: 0 40px 0 var(--gold), 0 80px 0 var(--gold), 0 -40px 0 var(--gold);
}

/* EMV chip */
.chip {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 44px;
    height: 34px;
    border-radius: 5px;
    background: linear-gradient(135deg, #d4a843 0%, #b8882e 40%, #e8c46a 60%, #c99b36 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), inset 0 -1px 2px rgba(0,0,0,0.4);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 2px;
    padding: 6px;
}

.chip-line {
    background: rgba(0,0,0,0.25);
    border-radius: 1px;
}

.chip-center {
    background: rgba(0,0,0,0.15);
    border-radius: 1px;
}

/* NFC wave */
.nfc {
    position: absolute;
    top: 32px;
    left: 84px;
    display: flex;
    gap: 3px;
    align-items: center;
}

.nfc-arc {
    width: 10px;
    height: 14px;
    border: 1.5px solid rgba(201,168,76,0.45);
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.nfc-arc:nth-child(1) { 
    opacity: 0.4; 
    width: 6px; 
    height: 9px; 
}

.nfc-arc:nth-child(3) { 
    opacity: 0.7; 
    width: 14px; 
    height: 20px; 
}

/* logo area */
.card-logo {
    position: absolute;
    top: 22px;
    right: 26px;
    text-align: right;
}

.logo-mark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 22px;
    letter-spacing: 0.12em;
    color: var(--gold);
    line-height: 1;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 7px;
    letter-spacing: 0.38em;
    color: rgba(201,168,76,0.6);
    text-transform: uppercase;
    margin-top: 3px;
}

/* card number display */
.card-number {
    position: absolute;
    top: 110px;
    left: 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* gift label */
.gift-badge {
    position: absolute;
    top: 107px;
    right: 26px;
    border: 1px solid rgba(201,168,76,0.5);
    padding: 4px 10px;
    border-radius: 3px;
}

.gift-badge span {
    font-size: 7px;
    letter-spacing: 0.3em;
    color: var(--gold-lt);
    text-transform: uppercase;
    font-weight: 500;
}

/* card message */
.card-message {
    position: absolute;
    top: 140px;
    left: 28px;
    right: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-style: italic;
    color: rgba(255,255,255,0.6);
    line-height: 1.3;
    max-height: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* holder name */
.card-holder {
    position: absolute;
    bottom: 40px;
    left: 28px;
}

.card-holder-label {
    font-size: 7px;
    letter-spacing: 0.25em;
    color: rgba(201,168,76,0.5);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card-holder-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.05em;
    line-height: 1;
    font-style: italic;
}

/* expiry / value */
.card-meta {
    position: absolute;
    bottom: 40px;
    right: 26px;
    text-align: right;
}

.card-meta-label {
    font-size: 7px;
    letter-spacing: 0.25em;
    color: rgba(201,168,76,0.5);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card-meta-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--gold-lt);
    letter-spacing: 0.08em;
}

/* bottom gold bar */
.card-stripe {
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dk), var(--gold), var(--gold-lt), var(--gold), var(--gold-dk));
}

.sgc-back-btn:hover{
    background-color: transparent;
}

/* Responsive Scaling for Card Preview */
@media (max-width: 480px) {
    .card-wrap {
        height: 200px;
        margin-bottom: 25px;
    }
    .card {
        transform-origin: top center;
        transform: scale(0.75);
    }
    .card:hover {
        transform: scale(0.77);
    }
}

@media (max-width: 380px) {
    .card-wrap {
        height: 170px;
    }
    .card {
        transform: scale(0.65);
    }
    .card:hover {
        transform: scale(0.67);
    }
}