/* ============================================================
   Yanks Join Page — Stylesheet
   /custom/css/yanks-join.css
   ============================================================ */

/* --- Brand tokens ------------------------------------------ */
:root {
    --blue:        #1B3A5C;
    --green:       #a5ca1a;
    --green-hover: #8aaa10;
    --text:        #333333;
    --text-muted:  #676767;
    --border:      #cccccc;
    --bg-page:     #f4f4f4;
    --bg-card:     #ffffff;
    --bg-active:   #1B3A5C;
    --error:       #d41051;
    --error-bg:    #fde8ee;
    --radius:      7px;
    --radius-sm:   5px;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: Arial, sans-serif; background: #f4f4f4; background: var(--bg-page); color: #333333; color: var(--text); }
img { max-width: 100%; border: none; display: block; }
a { color: var(--blue); text-decoration: underline; }
a:hover { text-decoration: none; }
h1,h2,h3,h4,h5,h6,p,ul,ol,form,input { margin: 0; padding: 0; font-weight: normal; }
ul { list-style: none; }
button { font-family: Arial, sans-serif; }

/* ============================================================
   Page layout
   ============================================================ */
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.join-container {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* --- Left: portrait model ---------------------------------- */
.join-image {
    flex: 0 0 44%;
    overflow: hidden;
    border-radius: var(--radius);
}
.join-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: var(--radius);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Right: form panel ------------------------------------- */
.join-form-wrap {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

/* ============================================================
   Logo (above both columns)
   ============================================================ */
.join-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.join-logo img {
    max-width: 200px;
    height: auto;
}

/* Image toggle handled by inline <style> in template to prevent NATS override */

/* ============================================================
   Form sections
   ============================================================ */
.form-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 12px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.form-section h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1B3A5C;
    color: var(--blue);
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ssl-icon {
    height: 24px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle;
    margin-left: 4px;
}

/* ============================================================
   Floating-label inputs  (CarnalPlus style)
   ============================================================ */
.field-row.two-col {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.field-row.two-col .field-group { flex: 1 1 0; min-width: 0; }

.field-group { margin-bottom: 10px; }
.field-group:last-child { margin-bottom: 0; }

/* Wrapper holds input + floating label */
.input-wrap { position: relative !important; width: 100%; }

.input-wrap input[type="text"],
.input-wrap input[type="password"] {
    width: 100% !important;
    height: 54px !important;
    padding: 14px 14px !important;
    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    color: var(--text) !important;
    background: #ffffff !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 180ms ease;
    appearance: none;
    -webkit-appearance: none;
}
.input-wrap input[type="text"]:focus,
.input-wrap input[type="password"]:focus {
    border-color: var(--blue) !important;
    box-shadow: none !important;
}

/* Placeholder text visible inside the input — darker for readability */
.input-wrap input[type="text"]::placeholder,
.input-wrap input[type="password"]::placeholder {
    color: #444444 !important;
    font-size: 15px !important;
}

/* Label sits on the top border of the input (CarnalPlus outlined style) */
.input-wrap .float-label {
    position: absolute !important;
    left: 10px !important;
    top: 0 !important;
    transform: translateY(-50%) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #444444 !important;
    background: #ffffff !important;
    padding: 0 5px !important;
    pointer-events: none !important;
    z-index: 2 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* On focus, label turns brand blue */
.input-wrap input[type="text"]:focus ~ .float-label,
.input-wrap input[type="password"]:focus ~ .float-label {
    color: var(--blue) !important;
}

/* Inline error messages */
.field-error {
    display: block;
    font-size: 12px;
    color: var(--error);
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    margin-bottom: 6px;
}

/* ============================================================
   Membership option cards
   ============================================================ */
.membership-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.membership-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    min-height: 72px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}
/* Hide the real radio input */
.membership-option input[type="radio"] {
    position: absolute;
    left: -9999px;
}
.membership-option:hover { border-color: var(--blue); }

/* Selected state */
.membership-option.active {
    background-color: var(--bg-active);
    border-color: var(--bg-active);
}

/* Checkmark indicator — left of card content */
.opt-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: transparent;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
    font-weight: 700;
    line-height: 1;
}
.membership-option.active .opt-check {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--blue);
}

/* Plan name + billing */
.opt-info { flex: 1 1 0; min-width: 0; }
.opt-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 3px;
}
.membership-option.active .opt-name { color: #ffffff; }
.opt-billing { font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.membership-option.active .opt-billing { color: rgba(255,255,255,0.75); }

/* Price block */
.opt-price {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    color: var(--text);
    line-height: 1;
}
.membership-option.active .opt-price,
.membership-option.active .price-currency,
.membership-option.active .price-whole { color: #ffffff; }
.price-currency { font-size: 20px; font-weight: 900; margin-top: 6px; color: #1B3A5C; color: var(--blue); }
.price-whole { font-size: 48px; font-weight: 900; line-height: 1; color: #1B3A5C; color: var(--blue); }
.price-right { display: flex; flex-direction: column; margin-left: 2px; padding-top: 5px; }
.price-decimal { font-size: 18px; font-weight: 900; line-height: 1; }
.price-period { font-size: 13px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; }
.membership-option.active .price-period { color: rgba(255,255,255,0.65); }

/* Best Value badge */
.best-value-badge {
    display: inline-block;
    background: linear-gradient(135deg, #b8d920 0%, #8aaa10 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
    margin-left: 6px;
    vertical-align: middle;
}
.membership-option.active .best-value-badge {
    background: linear-gradient(135deg, #b8d920 0%, #8aaa10 100%);
    color: #ffffff;
}

/* noscript fallback */
.noscript-options,
.noscript-cascades { padding: 8px 0; }

/* ============================================================
   Promo code
   ============================================================ */
.promo-toggle {
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}
.promo-toggle a { color: var(--blue); }
.promo-input-wrap {
    display: none;
    margin-top: 8px;
    position: relative;
}
.promo-input-wrap input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 88px 0 12px;
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text);
}
.promo-input-wrap button {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 36px;
    padding: 0 14px;
    background: var(--green);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid var(--green);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}
.promo-input-wrap button:hover { background: #ffffff; color: var(--green); }

/* ============================================================
   Payment method cards (selectable, Visa default visible)
   ============================================================ */
.payment-accepted-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.payment-methods {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
.payment-method {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius) !important;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
    user-select: none;
    -webkit-user-select: none;
    flex: 1 1 0;
    min-width: 120px;
    justify-content: center;
    background: #ffffff !important;
}
.payment-method input[type="radio"] {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
.payment-method:hover { border-color: var(--blue) !important; }
.payment-method.active {
    border-color: var(--blue) !important;
    background: #eef2f9 !important;
}
.pay-check {
    flex-shrink: 0 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: 2px solid var(--border) !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    color: transparent !important;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
    font-weight: 700;
    line-height: 1;
}
.payment-method.active .pay-check {
    background: #ffffff !important;
    border-color: var(--blue) !important;
    color: var(--blue) !important;
}
.pay-logo {
    height: 44px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
}

/* reCAPTCHA */
.captcha-section { display: flex; flex-direction: column; align-items: center; }

/* ============================================================
   Submit section + Terms
   ============================================================ */
.submit-section { padding: 18px 22px; }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
    margin-bottom: 14px;
}
.terms-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--blue);
}
.terms-check a { color: var(--blue); }

/* CTA Button */
.join-btn {
    display: block;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #b8d920 0%, #8aaa10 100%);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(165,202,26,0.4), 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 180ms ease, transform 120ms ease, background 180ms ease;
    position: relative;
    overflow: hidden;
}
/* Sheen sweep on hover */
.join-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 400ms ease;
}
.join-btn:hover {
    background: linear-gradient(135deg, #c8e930 0%, #9abb18 100%);
    box-shadow: 0 6px 20px rgba(165,202,26,0.55), 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.join-btn:hover::after { left: 125%; }
.join-btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(165,202,26,0.3); }
.join-btn:disabled,
.join-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Special payment form — hidden (cards now in payment section) */
#specialSignupform { display: none; }

/* Mail-in link */
.mail-in-link {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}
.mail-in-link a { font-weight: 700; }

/* ============================================================
   FOOTER
   Ported from style.css — identical visual output to live page
   Floats replaced with flexbox; IE hacks removed.
   ============================================================ */
footer {
    background: #000000;
    color: #aaaaaa;
    text-align: center;
    width: 100%;
    margin-top: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* "Need Help?" button row */
footer .wrap.joinb {
    padding: 24px 20px;
    text-align: center;
}
footer .wrap.joinb .container {
    max-width: 860px;
    margin: 0 auto;
}
footer .wrap.joinb .row {
    display: flex;
    justify-content: center;
}
/* "Need Help?" green button — matches existing Yanks live page */
footer .btn.btn-primary {
    display: inline-block;
    padding: 10px 30px;
    background: var(--green);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 2px solid var(--green);
    transition: background 180ms ease, color 180ms ease;
}
footer .btn.btn-primary:hover {
    background: transparent;
    color: var(--green);
}

/* Copyright block */
.copyright {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 16px;
}
.copyright p {
    font-size: 11px;
    line-height: 17px;
    color: #aaaaaa;
    margin-bottom: 10px;
}
.copyright hr {
    border: none;
    border-top: 1px solid #333333;
    margin: 14px 0;
}
.copyright br { display: block; }

/* Billing / recurring disclosure */
.copyleft {
    font-size: 11px;
    line-height: 17px;
    color: #aaaaaa;
}
.copyleft a { color: #aaaaaa; }
.copyleft a:hover { color: #ffffff; }

/* RTA label */
.rta {
    display: flex;
    justify-content: center;
    padding: 10px 0 20px;
}
.rta img {
    display: inline-block;
    border: none;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet (768px–1023px) */
@media (max-width: 1023px) {
    .page-wrap { padding: 12px 16px 0; }

    .join-container { flex-direction: column !important; gap: 0; }

    /* Desktop portrait image hidden via inline <style> in template */

    .join-form-wrap { padding: 0 0 24px; }

    /* Payment cards row on tablet */
    .payment-methods { flex-direction: row !important; }
    .pay-logo { height: 36px !important; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .page-wrap { padding: 8px 12px 0; }
    /* Mobile banner height handled by inline <style> in template */
    .join-form-wrap { padding: 0 0 20px; }
    .form-section { padding: 16px; }
    .form-section h3 { font-size: 18px; margin-bottom: 12px; }
    .price-whole { font-size: 38px; }
    .opt-name { font-size: 16px; }
    .join-btn { font-size: 22px; height: 54px; }

    /* Payment cards stack on mobile but stay horizontal inside */
    .payment-methods { flex-direction: column !important; }
    .payment-method { justify-content: flex-start !important; }
    .pay-logo { height: 36px !important; }
}

/* Very small (max-width: 479px) — stack username/password inputs */
@media (max-width: 479px) {
    .field-row.two-col { flex-direction: column; gap: 0; }
    .membership-option { flex-wrap: wrap; }
    .opt-price { margin-left: auto; }
    .pay-logo { height: 32px !important; }
}

/* ============================================================
   Critics' Reviews Section
   ============================================================ */
.reviews-block {
    background: #111827;
    color: #fff;
    padding: 50px 20px 60px;
    margin-top: 32px;
    margin-bottom: 40px;
}
.reviews-wrap {
    max-width: 1280px;
    margin: 0 auto;
}
.reviews-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.review-card {
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s, transform 0.2s;
}
.review-card:hover {
    border-color: #08b921;
}
/* Lift effect handled by .review-card-link:hover .review-card when wrapped in link */
.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.review-card__source {
    font-weight: 900;
    font-size: 0.95rem;
    color: #08b921;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.review-card__score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.review-grade {
    font-size: 1.3rem;
    font-weight: 900;
    color: #08b921;
    line-height: 1;
}
.review-score-label {
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.review-card__quote {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #e5e7eb;
    font-style: italic;
    border-left: 3px solid #08b921;
    padding-left: 12px;
    flex-grow: 1;
}
.review-card__pros {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.review-card__pros li {
    font-size: 0.8rem;
    color: #d1d5db;
    padding-left: 20px;
    position: relative;
}
.review-card__pros li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #08b921;
    font-weight: 900;
    font-size: 1.15rem;
}

/* Review links — no underline, inherit colors, full card clickable */
.reviews-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.reviews-title-link:hover { text-decoration: none; }
.review-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 8px;
}
.review-card-link:hover { text-decoration: none; }
.review-card-link:hover .review-card {
    border-color: #08b921;
    transform: translateY(-3px);
}

/* Reviews responsive */
@media (max-width: 1023px) {
    .reviews-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
    .reviews-block { padding: 40px 16px; }
    .reviews-title { font-size: 22px; }
}
