/* ============================================
   Registration Page — 4-Tier Hybrid Pricing
   ============================================ */

/* --- Brand Variables --- */
:root {
    --brand-primary: #634b32;
    --brand-primary-light: #8b6b4a;
    --brand-accent: #c39144;
    --brand-success: #28a745;
    --brand-dark: #2d2d2d;
    --brand-muted: #6c757d;
    --brand-light: #f8f9fa;
    --brand-border: #e0e0e0;
    --card-radius: 14px;
    --section-spacing: 80px;
}

/* ---- Hero Section ---- */
.reg-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    text-align: center;
    padding: 70px 20px 60px;
    margin: 0;
    width: 100%;
}
.reg-hero img.hero-logo {
    max-width: 180px;
    margin-bottom: 24px;
}
.reg-hero .hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.reg-hero .hero-headline em {
    font-style: italic;
    color: #c39144;
}
.reg-hero .hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.reg-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.reg-hero p.hero-sub {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 620px;
    margin: 0 auto 28px;
}
.reg-hero .hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.reg-hero .btn-hero-primary {
    background: var(--brand-accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}
.reg-hero .btn-hero-primary:hover {
    background: #d4a04e;
    transform: translateY(-2px);
}
.reg-hero .btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}
.reg-hero .btn-hero-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    opacity: 0.85;
}
.trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---- Section Headings ---- */
.reg-section {
    padding: 0 20px;
    max-width: 1260px;
    margin: var(--section-spacing) auto 0;
}
.reg-section-heading {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
}
.reg-section-sub {
    text-align: center;
    color: var(--brand-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* ---- Billing Toggle ---- */
.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}
.billing-toggle-wrap span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.billing-toggle-wrap span.active-cycle {
    color: var(--brand-dark);
}
.billing-toggle {
    position: relative;
    width: 56px;
    height: 30px;
    background: var(--brand-border);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
}
.billing-toggle.annual-active {
    background: var(--brand-accent);
}
.billing-toggle .toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.billing-toggle.annual-active .toggle-knob {
    left: 29px;
}
.billing-save-badge {
    background: var(--brand-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 4px;
}

/* ---- Pricing Tier Cards ---- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}
.tier-card {
    background: #fff;
    border: 2px solid var(--brand-border);
    border-radius: var(--card-radius);
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}
.tier-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}
.tier-card.popular {
    border-color: var(--brand-accent);
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(195,145,68,0.18);
    z-index: 2;
}
.tier-card.popular:hover {
    transform: scale(1.05) translateY(-6px);
}
.tier-card.selected {
    border-color: var(--brand-success);
    box-shadow: 0 0 0 3px rgba(40,167,69,0.2);
}
.tier-card .selected-badge {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-success);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    line-height: 28px;
    text-align: center;
}
.tier-card.selected .selected-badge {
    display: block;
}

/* Popular ribbon */
.popular-ribbon {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 20px;
    border-radius: 0 0 10px 10px;
    letter-spacing: 0.5px;
}
.tier-card .tier-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 22px 0 6px;
}
.tier-card .tier-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    margin: 8px 0 2px;
}
.tier-card .tier-price .price-currency {
    font-size: 1.2rem;
    vertical-align: super;
    font-weight: 600;
}
.tier-card .tier-price .price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--brand-muted);
}
.tier-card .tier-annual-price {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin-bottom: 18px;
    min-height: 20px;
}
.tier-card .tier-annual-price s {
    color: #aaa;
    margin-right: 4px;
}
.tier-card .tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}
.tier-card .tier-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tier-card .tier-features li:last-child {
    border-bottom: none;
}
.tier-card .tier-features li i {
    color: var(--brand-success);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.tier-card .tier-includes {
    font-size: 0.82rem;
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}
.btn-select-tier {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--brand-primary);
    background: transparent;
    color: var(--brand-primary);
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-select-tier:hover {
    background: var(--brand-primary);
    color: #fff;
}
.tier-card.selected .btn-select-tier {
    background: var(--brand-success);
    border-color: var(--brand-success);
    color: #fff;
}
.tier-card.popular .btn-select-tier {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}
.tier-card.popular .btn-select-tier:hover {
    background: #d4a04e;
    border-color: #d4a04e;
}

/* ---- Feature Comparison Table ---- */
.feature-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}
.feature-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.feature-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}
.feature-table thead th {
    background: var(--brand-primary);
    color: #fff;
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}
.feature-table thead th:first-child {
    text-align: left;
    min-width: 220px;
}
.feature-table tbody tr {
    border-bottom: 1px solid #eee;
}
.feature-table tbody tr:nth-child(even) {
    background: #fafafa;
}
.feature-table tbody tr:hover {
    background: #f0efe8;
}
.feature-table tbody td {
    padding: 11px 16px;
    text-align: center;
    vertical-align: middle;
}
.feature-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}
.feature-table .category-row td {
    background: var(--brand-accent);
    font-weight: 700;
    color: #fff;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
}
.feature-table .fa-check {
    color: var(--brand-success);
    font-size: 1rem;
}
.feature-table .fa-times {
    color: #dc3545;
    font-size: 0.95rem;
}

/* ---- Competitor Comparison ---- */
.competitor-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}
.competitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.competitor-table thead th {
    background: var(--brand-dark);
    color: #fff;
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
}
.competitor-table thead th:first-child {
    text-align: left;
    min-width: 200px;
}
.competitor-table thead th.our-col {
    background: var(--brand-primary);
}
.competitor-table tbody tr {
    border-bottom: 1px solid #eee;
}
.competitor-table tbody tr:nth-child(even) {
    background: #fafafa;
}
.competitor-table tbody td {
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
}
.competitor-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}
.competitor-table tbody td.our-col {
    background: rgba(195,145,68,0.12);
    font-weight: 600;
}
.competitor-table .fa-check {
    color: var(--brand-success);
}
.competitor-table .fa-times {
    color: #dc3545;
}

/* ---- Add-On Cards ---- */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.addon-card {
    background: rgba(195,145,68,0.06);
    border: 2px solid var(--brand-primary);
    border-radius: var(--card-radius);
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    cursor: pointer;
    position: relative;
}
.addon-card:hover {
    border-color: var(--brand-primary-light);
    box-shadow: 0 6px 20px rgba(99,75,50,0.1);
    background: rgba(195,145,68,0.1);
}
.addon-card.selected {
    border-color: var(--brand-success);
    background: rgba(40,167,69,0.06);
}
.addon-card.hidden-addon {
    display: none;
}
.addon-card .addon-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-dark);
    margin-bottom: 6px;
}
.addon-card .addon-desc {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin-bottom: 14px;
}
.addon-card .addon-prices {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.addon-price-option {
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.addon-price-option:hover {
    border-color: var(--brand-accent);
}
.addon-price-option.active-option {
    border-color: var(--brand-accent);
    background: rgba(195,145,68,0.08);
}
.addon-price-option .addon-level {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.addon-price-option .addon-amount {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-primary);
}
.addon-card .addon-single-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--brand-primary);
    margin-top: 6px;
}
.addon-card .addon-single-price .price-period {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--brand-muted);
}

/* ---- Registration Form ---- */
.reg-form-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid var(--brand-border);
    border-radius: var(--card-radius);
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.reg-form-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 24px;
    text-align: center;
}
.plan-summary {
    background: var(--brand-light);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.plan-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.92rem;
    color: #444;
}
.plan-summary .summary-row.total-row {
    border-top: 2px solid var(--brand-border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-primary);
}
.reg-form-card .form-group {
    margin-bottom: 18px;
}
.reg-form-card label {
    font-weight: 600;
    color: #555;
    font-size: 0.92rem;
    margin-bottom: 5px;
}
.reg-form-card .form-control {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--brand-border);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.reg-form-card .form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(195,145,68,0.15);
}
.btn-register {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}
.btn-register:hover {
    background: var(--brand-primary-light);
    transform: translateY(-1px);
}
.btn-free-trial-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--brand-accent);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
}
.btn-free-trial-link:hover {
    color: var(--brand-primary);
}
.login-link-bottom {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--brand-muted);
}
.login-link-bottom a {
    color: var(--brand-accent);
    font-weight: 600;
}

/* ---- FAQ Accordion ---- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark);
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}
.faq-question:hover {
    background: var(--brand-light);
}
.faq-question i {
    transition: transform 0.3s;
    color: var(--brand-muted);
}
.faq-item.open .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 20px 16px;
}

/* ---- Alert Styles ---- */
.reg-alert {
    max-width: 640px;
    margin: 0 auto 20px;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.92rem;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tier-card.popular {
        transform: scale(1);
    }
    .tier-card.popular:hover {
        transform: translateY(-6px);
    }
}
@media (max-width: 900px) {
    .addon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .reg-hero .hero-headline {
        font-size: 1.8rem;
    }
    .reg-hero .hero-desc {
        font-size: 0.95rem;
    }
    .reg-hero h1 {
        font-size: 1.7rem;
    }
    .reg-hero p.hero-sub {
        font-size: 1rem;
    }
    .tier-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .addon-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .feature-table-wrap,
    .competitor-table-wrap {
        margin-left: -20px;
        margin-right: -20px;
    }
    .reg-form-card {
        padding: 24px 18px;
    }
    .reg-section {
        padding: 0 12px;
    }
    .trust-badges {
        gap: 14px;
    }
}
@media (max-width: 480px) {
    .reg-hero {
        padding: 50px 16px 40px;
    }
    .reg-hero .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .reg-hero .btn-hero-primary,
    .reg-hero .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
    }
}
