/* Santa's personalised audio (santa-message.html, santa-message.js): the
   order form, the "Santa is recording" wait, and the finished recordings,
   in the site's own look. */

.sm-main { width: 100%; max-width: 780px; box-sizing: border-box; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.sm-hero { margin: 0.5rem 0 1.5rem; }
.sm-hero h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.sm-hero p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.sm-hero .sm-price-tag {
    display: inline-block; margin: 0 0 0.6rem; padding: 0.2rem 0.65rem; border-radius: 999px;
    background: #FBE9E6; color: #9E1B22; font: 700 0.82rem 'Inter', sans-serif; letter-spacing: 0.03em;
}
@media (max-width: 520px) { .sm-hero h1 { font-size: 1.7rem; } }

.sm-form { display: grid; gap: 1.25rem; }
.sm-form[hidden], .sm-card[hidden] { display: none; }
.sm-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.25rem; }
.sm-card h2 { font-size: 1.15rem; margin: 0 0 0.9rem; }
.sm-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sm-field { margin: 0 0 1rem; }
.sm-field label, .sm-legend, .sm-label {
    display: block; font: 600 0.92rem 'Inter', sans-serif; color: var(--text-dark); margin: 0 0 0.35rem; padding: 0;
}
.sm-field label small { font-weight: 400; color: var(--text-muted); }
.sm-field input[type="text"], .sm-field input[type="email"], .sm-field select {
    width: 100%; box-sizing: border-box; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 8px;
    font: 400 1rem 'Inter', sans-serif; background: #fff; color: var(--text-dark); min-height: 2.75rem;
}
.sm-field input:focus, .sm-field select:focus { outline: 2px solid var(--secondary); outline-offset: 1px; border-color: var(--secondary); }
.sm-field [aria-invalid="true"] { border-color: #B3261E; }
.sm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
@media (max-width: 520px) { .sm-row { grid-template-columns: 1fr; } }
.sm-help { margin: -0.6rem 0 1rem; font-size: 0.82rem; color: var(--text-muted); }
.sm-field .sm-help { margin: 0.3rem 0 0; }
.sm-hint { margin: -0.6rem 0 1rem; font-size: 0.85rem; color: #8A5A00; }
.sm-error { margin: 0.3rem 0 0; font-size: 0.85rem; color: #B3261E; font-weight: 500; }
.sm-link-btn {
    border: 0; background: none; padding: 0; color: var(--secondary); font: 600 0.85rem 'Inter', sans-serif;
    text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

/* The three products, as cards with a price. */
.sm-products { display: grid; gap: 0.6rem; }
.sm-product { position: relative; display: block; cursor: pointer; }
.sm-product input, .sm-story input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-product-body {
    display: block; padding: 0.8rem 0.9rem; border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
}
.sm-product-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; color: var(--text-dark); }
.sm-product-price { font: 700 1.05rem 'Inter', sans-serif; color: #9E1B22; }
.sm-product-text { display: block; margin-top: 0.25rem; font-size: 0.88rem; line-height: 1.45; color: var(--text-muted); }
.sm-product input:checked + .sm-product-body, .sm-story input:checked + span { border-color: var(--secondary); box-shadow: 0 0 0 1px var(--secondary); }
.sm-product input:focus-visible + .sm-product-body, .sm-story input:focus-visible + span { outline: 2px solid var(--secondary); outline-offset: 2px; }

.sm-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 520px) { .sm-stories { grid-template-columns: 1fr; } }
.sm-story { position: relative; display: block; cursor: pointer; }
.sm-story span {
    display: block; height: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 0.86rem; line-height: 1.45; color: var(--text-muted); background: #fff;
}
.sm-story strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; color: var(--text-dark); }

.sm-check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.25rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--text-dark); cursor: pointer; }
.sm-check input { margin: 0.2rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--secondary); }

.sm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 3rem; padding: 0.7rem 1.3rem;
    border: 0; border-radius: 999px; background: var(--secondary); color: #fff; cursor: pointer;
    font: 700 1rem 'Inter', sans-serif; text-decoration: none; box-sizing: border-box;
}
.sm-btn:hover { background: var(--secondary-dark); }
.sm-btn:disabled { opacity: 0.7; cursor: progress; }
.sm-btn-pay { width: 100%; margin-top: 1rem; background: #9E1B22; }
.sm-btn-pay:hover { background: #7F151B; }
.sm-btn-secondary { background: #fff; color: var(--secondary); border: 1.5px solid var(--secondary); min-height: 2.6rem; font-size: 0.92rem; }
.sm-btn-secondary:hover { background: #F1F7F7; }
.sm-fine { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--text-muted); text-align: center; }

.sm-message { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.95rem; background: #EEF6F6; color: var(--text-dark); }
.sm-message.is-error { background: #FBE9E6; color: #8C1D18; }

/* The order: recording, then the players. */
.sm-order { margin: 0 0 1.5rem; }
.sm-order-card h2 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.sm-recording { text-align: center; padding: 1rem 0; }
.sm-recording p { color: var(--text-muted); margin: 0; }
.sm-spinner {
    width: 2.6rem; height: 2.6rem; margin: 0 auto 1rem; border-radius: 50%;
    border: 4px solid #F3D9D6; border-top-color: #9E1B22; animation: sm-spin 0.9s linear infinite;
}
@keyframes sm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sm-spinner { animation-duration: 3s; } }
.sm-players { display: grid; gap: 1rem; margin: 1rem 0; }
.sm-player { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #FFFDF7; }
.sm-player h3 { font-size: 1rem; margin: 0 0 0.6rem; }
.sm-player audio { display: block; width: 100%; margin: 0 0 0.75rem; }
.sm-ready-note { font-size: 0.92rem; color: var(--text-muted); }
.sm-tips { margin-top: 1rem; padding: 0.9rem 1rem; background: #F7F5EF; border-radius: 10px; }
.sm-tips h3 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.sm-tips ul { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; line-height: 1.55; }
.sm-again { margin: 1rem 0 0; font-size: 0.92rem; }

.sm-faq { margin-top: 2.5rem; }
.sm-sample { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 12px; background: #FFFDF7; border: 1px solid var(--border); }
.sm-sample-label { margin: 0 0 0.5rem !important; font: 600 0.9rem 'Inter', sans-serif; color: var(--text-dark) !important; }
.sm-sample audio { display: block; width: 100%; }
.sm-add-card .sm-btn-pay { margin-top: 0; }
.sc-added .sm-btn { min-height: 2.6rem; font-size: 0.92rem; }
.sm-faq h2 { font-size: 1.35rem; margin: 0 0 0.8rem; }
.sm-faq h3 { font-size: 1rem; margin: 1.2rem 0 0.3rem; }
.sm-faq p { margin: 0; color: var(--text-dark); line-height: 1.6; }

/* All 3: the best value, marked out. */
.sm-product-all3 .sm-product-body { background: #FFFBFA; border-color: #E7C9C5; }
.sm-best {
    display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 999px; vertical-align: 0.1em;
    background: #9E1B22; color: #fff; font: 700 0.7rem 'Inter', sans-serif; letter-spacing: 0.02em;
}
.sm-product[hidden] { display: none; }
.sm-help-top { margin: -0.2rem 0 0.9rem; }

/* A sample that can't load. */
.sm-sample-missing { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.sm-sample-missing[hidden] { display: none; }

/* Free edits, under a paid recording. */
.sm-edits { margin: 1rem 0 0; padding: 0.85rem 1rem; border-radius: 12px; background: #F6F4EF; }
.sm-edits[hidden] { display: none; }
.sm-edits p { margin: 0 0 0.6rem; font-size: 0.95rem; color: var(--text-dark); }
.sm-edits .sm-btn[hidden] { display: none; }
.sm-edit-cancel { display: block; margin: 0.6rem auto 0; }
.sm-edit-cancel[hidden] { display: none; }
