/* ============================================================
   APPLY FOR A DISCOUNT CODE — page-specific styles
   Signature idea: the page is literally about getting a coupon,
   so the price/offer is presented as an actual ticket stub — cream
   card stock, a dashed tear-line, and punched perforation notches —
   rather than another generic bordered price box. Everything else
   stays disciplined and quiet (site navy/teal/gold, system font,
   no extra motion) so the one ticket idea reads as intentional.
   ============================================================ */

.dc-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.dc-head {
    text-align: center;
    margin-bottom: 28px;
}
.dc-head .dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eafaf6;
    color: var(--accent-dark, #149b80);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.dc-head h1 {
    font-size: 28px;
    color: var(--navy, #2a3f54);
    margin: 0 0 8px;
    font-weight: 800;
}
.dc-head p {
    color: #667;
    font-size: 14.5px;
    max-width: 460px;
    margin: 0 auto;
}

/* ---- flash / status messages ---- */
.dc-flash {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.55;
}
.dc-flash.success { background: #e3f8f1; color: #0d6b56; border: 1px solid #b7e9d7; }
.dc-flash.error   { background: #fdecea; color: #922b21; border: 1px solid #f3c2bb; }

/* ---- info card (the free-text "how codes work" content) ---- */
.dc-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(42,63,84,.06);
    border-left: 4px solid var(--accent, #1abb9c);
}
.dc-info-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--accent-dark, #149b80);
    margin-bottom: 10px;
}
.dc-info .info-popup-heading { color: var(--accent-dark, #149b80); }
.dc-info .info-popup-para,
.dc-info .info-popup-list li { color: #445; }

/* ============================================================
   THE TICKET — signature element. A physical coupon: cream stub,
   dashed tear-line, punched semicircle notches top & bottom. Built
   from real elements (not fragile ::before/::after box-math) so the
   punches stay correctly placed however tall the stub ends up being,
   on any screen size.
   ============================================================ */
.dc-ticket {
    display: flex;
    align-items: stretch;
    background: #fffaf0;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(42,63,84,.14);
    margin-bottom: 26px;
}
.dc-ticket-main {
    flex: 1;
    padding: 26px 28px;
    min-width: 0;
}
.dc-ticket-main .dc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #b5893a;
    margin-bottom: 6px;
}
.dc-ticket-main h2 {
    font-size: 18px;
    color: var(--navy, #2a3f54);
    margin: 0 0 8px;
}
.dc-ticket-main p {
    font-size: 13.5px;
    color: #6b6350;
    margin: 0;
}

/* the tear-line itself, plus two punched notch circles sitting on it */
.dc-ticket-divider {
    position: relative;
    flex-shrink: 0;
    width: 0;
    margin: 16px 0;
    border-left: 2px dashed rgba(244,166,35,.55);
}
.dc-notch {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f4f7fa; /* matches body.public-body background — reads as a punched-out hole */
    transform: translate(-50%, -50%);
}
.dc-notch.top    { top: 0; }
.dc-notch.bottom { top: 100%; }

.dc-ticket-stub {
    flex-shrink: 0;
    width: 168px;
    background: var(--navy, #2a3f54);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px;
    border-radius: 0 16px 16px 0;
}

.dc-price {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--gold, #f4a623);
}
.dc-price small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #b8c4d4;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.dc-price.free { font-size: 20px; color: #6de3c4; }

/* ---- payment details, nested inside the ticket like a receipt ---- */
.dc-pay {
    background: #fff;
    border: 1.5px dashed #e3dcc9;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: #4a4536;
}
.dc-pay strong { color: var(--navy, #2a3f54); }
.dc-pay code {
    background: #f4f7fa;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
}
.dc-pay a { color: var(--accent-dark, #149b80); font-weight: 600; }
.dc-pay-row { margin-bottom: 6px; }
.dc-pay-row:last-child { margin-bottom: 0; }

/* responsive: stub moves under the main copy, tear-line goes horizontal —
   the divider/notches are real elements, so this is just a re-orientation,
   no fragile position math to recompute. */
@media (max-width: 560px) {
    .dc-ticket { flex-direction: column; }
    .dc-ticket-divider {
        width: auto;
        height: 0;
        margin: 0 18px;
        border-left: none;
        border-top: 2px dashed rgba(244,166,35,.55);
    }
    .dc-notch.top    { top: 0; left: 0; }
    .dc-notch.bottom { top: 0; left: 100%; }
    .dc-ticket-stub {
        width: auto;
        border-radius: 0 0 16px 16px;
        padding: 16px;
    }
}

/* ============================================================
   FORM
   ============================================================ */
.dc-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 2px 14px rgba(42,63,84,.08);
}
.dc-field { margin-bottom: 18px; }
.dc-field label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy, #2a3f54);
    margin-bottom: 6px;
}
.dc-field .req { color: var(--gold, #f4a623); }
.dc-field input[type="text"],
.dc-field input[type="email"],
.dc-field input[type="number"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e6ef;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fff;
}
.dc-field input:focus {
    outline: none;
    border-color: var(--accent, #1abb9c);
    box-shadow: 0 0 0 3px rgba(26,187,156,.14);
}
.dc-field small { display: block; margin-top: 5px; font-size: 12px; color: #8a94a3; }

.dc-captcha {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
}
.dc-captcha .dc-captcha-q { font-size: 13px; color: #445; font-weight: 600; }
.dc-captcha .dc-captcha-q strong { color: var(--navy, #2a3f54); font-size: 15px; }
.dc-captcha input { width: 90px; padding: 8px 10px; border: 1.5px solid #e0e6ef; border-radius: 7px; font-size: 14px; }

.dc-submit {
    width: 100%;
    background: var(--accent, #1abb9c);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.dc-submit:hover { background: var(--accent-dark, #149b80); }
.dc-submit:active { transform: translateY(1px); }

.dc-back {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
}
.dc-back a { color: #6c7a8a; }
.dc-back a:hover { color: var(--accent-dark, #149b80); }

/* ============================================================
   SUCCESS STATE — reuses the ticket-stub language for the
   confirmation reference, so the visual promise ("you're getting
   a ticket") pays off at the end of the flow.
   ============================================================ */
.dc-confirm {
    background: #fffaf0;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(42,63,84,.14);
    padding: 30px 28px;
    text-align: center;
}
.dc-confirm .dc-check {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--accent, #1abb9c);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}
.dc-confirm h2 { color: var(--navy, #2a3f54); margin: 0 0 10px; font-size: 19px; }
.dc-confirm p { color: #6b6350; font-size: 14px; margin: 0 auto 16px; max-width: 420px; }
.dc-ref {
    display: inline-block;
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--navy, #2a3f54);
    background: #fff;
    border: 2px dashed #e3dcc9;
    border-radius: 10px;
    padding: 10px 22px;
}
