/* ─────────────────────────────────────────────────────────────────────────────
   BC Sampling Engine — Frontend Styles
   Brand-matched to Bryan & Candy: #1C1B1B text, white bg, 0px radius, Cormorant + Jost fonts
───────────────────────────────────────────────────────────────────────────── */

/* Google Fonts — Cormorant Garamond (headings) + Jost (body) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --bc-color:        #1C1B1B;
    --bc-color-hover:  #3a3a3a;
    --bc-color-light:  rgba(28,27,27,.07);
    --bc-accent:       #1C1B1B;
    --bc-radius:       0px;
    --bc-radius-sm:    0px;
    --bc-shadow:       0 4px 32px rgba(0,0,0,.10);
    --bc-font-heading: 'Cormorant Garamond', Georgia, serif;
    --bc-font-body:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bc-input-border: #d6d4d4;
    --bc-text:         #1C1B1B;
    --bc-text-muted:   #6b6969;
    --bc-white:        #ffffff;
    --bc-bg:           #fafaf9;
    --bc-error:        #c0392b;
    --bc-success:      #1a6b3c;
    --bc-gold:         #b8975a;
}

/* ── Wrapper ── */
.bc-sampling-wrapper {
    font-family: var(--bc-font-body);
    color: var(--bc-text);
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

/* ── Screens ── */
.bc-screen { display: none; }
.bc-screen--active { display: block; }

/* ── Card ── */
.bc-card {
    background: var(--bc-white);
    border: 1px solid #e8e6e6;
    box-shadow: var(--bc-shadow);
    padding: 44px 40px;
}

@media (max-width: 480px) {
    .bc-card { padding: 32px 22px; }
}

/* ── Logo image ── */
.bc-card__logo {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ebebeb;
}

.bc-logo-img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    display: inline-block;
}

/* ── Logo / Brand strip (text fallback) ── */
.bc-card__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ebebeb;
}

.bc-card__brand-name {
    font-family: var(--bc-font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bc-text);
}

.bc-card__brand-line {
    width: 32px;
    height: 1px;
    background: var(--bc-gold);
}

/* ── Headings ── */
.bc-card__title {
    font-family: var(--bc-font-heading);
    font-size: 1.9rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 10px;
    color: var(--bc-text);
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.bc-card__subtitle {
    font-family: var(--bc-font-body);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--bc-text-muted);
    text-align: center;
    margin: 0 0 30px;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* ── Form rows ── */
.bc-field-row {
    margin-bottom: 18px;
}

.bc-field-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .bc-field-row--two {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .bc-field-row--two .bc-field { margin-bottom: 18px; }
}

/* ── Fields ── */
.bc-field label {
    display: block;
    font-family: var(--bc-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--bc-text);
    margin-bottom: 6px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bc-req { color: var(--bc-error); }
.bc-opt {
    font-size: 0.65rem;
    color: var(--bc-text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    margin-left: 4px;
}

.bc-field input,
.bc-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bc-input-border);
    border-radius: var(--bc-radius-sm);
    font-family: var(--bc-font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--bc-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.bc-field input::placeholder { color: #b0adad; }

.bc-field input:focus,
.bc-field select:focus {
    outline: none;
    border-color: var(--bc-text);
    background: #fff;
}

.bc-field input.bc-invalid,
.bc-field select.bc-invalid {
    border-color: var(--bc-error);
}

/* ── Error ── */
.bc-error {
    background: #fdf2f2;
    border-left: 3px solid var(--bc-error);
    color: var(--bc-error);
    padding: 10px 14px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* ── Buttons ── */
.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--bc-radius);
    font-family: var(--bc-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background .2s, color .2s, opacity .15s;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.bc-btn--primary {
    background: var(--bc-color);
    color: var(--bc-white);
}

.bc-btn--primary:hover { background: var(--bc-color-hover); color: #fff; }
.bc-btn--primary:disabled { opacity: .55; cursor: not-allowed; }

.bc-btn--outline {
    background: transparent;
    color: var(--bc-color);
    border: 1px solid var(--bc-color);
    margin-top: 14px;
}

.bc-btn--outline:hover {
    background: var(--bc-color);
    color: var(--bc-white);
}

/* Spinner */
.bc-spin {
    animation: bc-spin 0.8s linear infinite;
    transform-origin: center;
}
@keyframes bc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Divider ── */
.bc-divider {
    width: 40px;
    height: 1px;
    background: var(--bc-gold);
    margin: 0 auto 20px;
}

/* ── Consent ── */
.bc-consent {
    font-family: var(--bc-font-body);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--bc-text-muted);
    text-align: center;
    margin: 14px 0 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   SUCCESS SCREEN
───────────────────────────────────────────── */

.bc-card--success { text-align: center; }

.bc-success-check {
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--bc-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: bc-fadein .5s ease;
}

.bc-success-check svg { stroke: var(--bc-text); }

@keyframes bc-fadein {
    from { opacity: 0; transform: scale(.8); }
    to   { opacity: 1; transform: scale(1);  }
}

/* ── Code reveal ── */
.bc-code-reveal {
    background: var(--bc-bg);
    border: 1px solid #e2e0e0;
    border-top: 3px solid var(--bc-text);
    padding: 24px 20px 20px;
    margin: 24px 0 6px;
}

.bc-code-label {
    font-family: var(--bc-font-body);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bc-text-muted);
    margin-bottom: 12px;
}

.bc-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

#bc-code-text {
    font-family: var(--bc-font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--bc-text);
    animation: bc-reveal .5s ease .1s both;
}

@keyframes bc-reveal {
    from { letter-spacing: 0.5em; opacity: 0; }
    to   { letter-spacing: 0.15em; opacity: 1; }
}

.bc-copy-btn {
    background: transparent;
    border: 1px solid #d6d4d4;
    padding: 8px;
    cursor: pointer;
    color: var(--bc-text);
    display: inline-flex;
    transition: background .2s, color .2s;
}

.bc-copy-btn:hover { background: var(--bc-text); color: white; }

.bc-copy-confirm {
    font-size: 0.75rem;
    color: var(--bc-success);
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

/* ── Validity badge ── */
.bc-validity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf8f0;
    border: 1px solid #e8d9bc;
    color: #7a5c28;
    font-family: var(--bc-font-body);
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 7px 14px;
    margin-top: 14px;
}

/* ── Redirect bar ── */
.bc-redirect-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ebebeb;
}

.bc-redirect-info p {
    font-family: var(--bc-font-body);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--bc-text-muted);
    margin: 0 0 12px;
    letter-spacing: 0.03em;
}

.bc-progress-bar {
    width: 100%;
    height: 2px;
    background: #e5e5e5;
    overflow: hidden;
}

.bc-progress-fill {
    height: 100%;
    background: var(--bc-text);
    width: 100%;
    transform-origin: left;
    animation: bc-shrink var(--bc-delay, 5s) linear forwards;
}

@keyframes bc-shrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
