/* ── NAPA TRACS Promo — ntracs-style.css ── */

/* Uses WooCommerce Storefront CSS variables where possible */
#ntracs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 48px;
    font-family: inherit; /* inherit theme font */
}

/* ── Hero ── */
.ntracs-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-top: 4px solid #003087;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 36px;
}

.ntracs-hero-logo {
    flex-shrink: 0;
}

.ntracs-hero-logo img {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

.ntracs-badge {
    display: inline-block;
    background: #003087;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.ntracs-hero h2 {
    margin: 0 0 10px;
    font-size: 26px;
    color: #111;
    border: none;
    padding: 0;
}

.ntracs-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.ntracs-orig {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.ntracs-final {
    font-size: 32px;
    font-weight: 700;
    color: #F5C000;
}

.ntracs-save {
    background: #F5C000;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.ntracs-coupon-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #666;
}

/* ── Two-column layout ── */
.ntracs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

@media (max-width: 720px) {
    .ntracs-columns {
        grid-template-columns: 1fr;
    }
    .ntracs-hero {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Column cards ── */
.ntracs-col {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    background: #fff;
}

.ntracs-col-heading {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #003087;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
}

.ntracs-col-icon {
    font-size: 18px;
}

/* ── Form labels & inputs — inherits WC Storefront style ── */
#ntracs-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}

#ntracs-wrap input[type="text"],
#ntracs-wrap input[type="email"],
#ntracs-wrap input[type="tel"],
#ntracs-wrap input[type="password"] {
    display: block;
    width: 100%;
    padding: 9px 12px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

#ntracs-wrap input:focus {
    outline: none;
    border-color: #003087;
    box-shadow: 0 0 0 3px rgba(0,48,135,.10);
}

#ntracs-wrap input.ntracs-error {
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204,0,0,.10);
}

.req {
    color: #cc0000;
}

/* ── State + ZIP side by side ── */
.ntracs-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Ship-to checkbox ── */
.ntracs-ship-choice {
    margin-top: 18px;
    padding: 14px;
    background: #f0f4ff;
    border: 1px solid #c0cef0;
    border-radius: 6px;
}

.ntracs-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

.ntracs-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #003087;
    cursor: pointer;
    flex-shrink: 0;
}

/* Active ship-to column highlight */
.ntracs-col.ship-selected {
    border-color: #003087;
    box-shadow: 0 0 0 2px rgba(0,48,135,.12);
}

/* Dim the unselected ship-to checkbox */
.ntracs-ship-choice.ship-dimmed {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Account box ── */
.ntracs-account-box {
    margin-top: 20px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.ntracs-account-box h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.ntracs-account-note {
    font-size: 12px;
    color: #888;
    margin: 0 0 12px;
    font-weight: 400 !important;
}

/* ── Messages ── */
.ntracs-msg {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.ntracs-msg--error {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    color: #cc0000;
}

/* ── Submit row ── */
.ntracs-submit-row {
    text-align: center;
}

.ntracs-btn {
    display: inline-block;
    background: #003087;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
    letter-spacing: .02em;
}

.ntracs-btn:hover {
    background: #00246b;
}

.ntracs-btn:active {
    transform: scale(.98);
}

.ntracs-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ntracs-secure-note {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}
