/* ========================================
   FleetGuard Membership — Styles
   ======================================== */

:root {
    --fg-navy:  #1a2744;
    --fg-gold:  #c8a85a;
    --fg-green: #4caf50;
    --fg-red:   #e53935;
    --fg-bg:    #f8f9fa;
    --fg-border:#e0e0e0;
    --fg-text:  #333;
    --fg-muted: #777;
}

/* ---- SIGNUP FORM ---- */
.fg-signup-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: var(--fg-text);
}

/* Steps indicator */
.fg-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
}
.fg-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0; right: 0;
    height: 2px;
    background: var(--fg-border);
    z-index: 0;
}
.fg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: var(--fg-muted);
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}
.fg-step span {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--fg-border);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    margin-bottom: 6px;
    transition: all .3s;
}
.fg-step.active span {
    background: var(--fg-navy);
    border-color: var(--fg-navy);
    color: #fff;
}
.fg-step.done span {
    background: var(--fg-green);
    border-color: var(--fg-green);
    color: #fff;
}
.fg-step.active { color: var(--fg-navy); font-weight: bold; }

/* Step content */
.fg-step-content { display: none; }
.fg-step-content.active { display: block; }
.fg-step-content h3 {
    font-size: 22px;
    color: var(--fg-navy);
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fg-border);
}

/* Form fields */
.fg-row { display: flex; gap: 15px; }
.fg-field { flex: 1; margin-bottom: 18px; }
.fg-field-sm { flex: 0 0 120px; }
.fg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-navy);
    margin-bottom: 5px;
}
.fg-field .req { color: var(--fg-red); }
.fg-field input,
.fg-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fg-border);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.fg-field input:focus,
.fg-field select:focus {
    outline: none;
    border-color: var(--fg-navy);
}
.fg-field input.fg-error { border-color: var(--fg-red); }

/* Step nav */
.fg-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--fg-border);
}

/* Buttons */
.fg-btn {
    background: var(--fg-navy);
    color: #fff !important;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}
.fg-btn:hover { background: #253466; }
.fg-btn-ghost {
    background: none;
    border: none;
    color: var(--fg-muted) !important;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 0;
}
.fg-btn-ghost:hover { color: var(--fg-navy) !important; }
.fg-btn-outline {
    background: none;
    border: 2px solid var(--fg-navy);
    color: var(--fg-navy) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
}
.fg-btn-outline:hover { background: var(--fg-navy); color: #fff !important; }

/* Vehicle rows */
.fg-vehicle-row {
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 15px;
    position: relative;
}
.fg-vehicle-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--fg-navy);
}
.fg-remove-vehicle {
    background: none;
    border: none;
    color: var(--fg-red);
    cursor: pointer;
    font-size: 13px;
}
#fg-add-vehicle {
    margin-bottom: 25px;
}

/* Billing toggle */
.fg-billing-toggle {
    display: flex;
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: 30px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 20px;
    gap: 2px;
}
.fg-toggle-btn {
    padding: 9px 24px;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: var(--fg-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    position: relative;
}
.fg-toggle-btn.active {
    background: var(--fg-navy);
    color: #fff;
}
.fg-save-badge {
    background: var(--fg-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.fg-pricing-note {
    text-align: center;
    color: var(--fg-muted);
    font-size: 13px;
    margin-bottom: 25px;
}

/* Plans grid */
.fg-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 680px) {
    .fg-plans-grid { grid-template-columns: 1fr; }
    .fg-row { flex-direction: column; }
}
.fg-plan-card {
    border: 2px solid var(--fg-border);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: all .2s;
    background: #fff;
    cursor: pointer;
}
.fg-plan-card:hover,
.fg-plan-card.selected {
    border-color: var(--fg-navy);
    box-shadow: 0 4px 20px rgba(26,39,68,.12);
    transform: translateY(-2px);
}
.fg-plan-popular {
    border-color: var(--fg-gold);
}
.fg-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fg-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.fg-plan-card h4 {
    color: var(--fg-navy);
    font-size: 17px;
    margin: 10px 0 5px;
}
.fg-plan-subtitle {
    color: var(--fg-muted);
    font-size: 12px;
    margin-bottom: 15px;
}
.fg-price-display { margin: 15px 0; }
.fg-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--fg-navy);
}
.fg-yearly-eq {
    display: block;
    font-size: 12px;
    color: var(--fg-green);
    font-weight: 600;
    margin-top: 3px;
}
.fg-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px;
    text-align: left;
    font-size: 13px;
}
.fg-features li {
    padding: 4px 0;
    color: var(--fg-text);
}
.fg-select-plan { width: 100%; }

/* Review box */
.fg-review-box {
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: 8px;
    padding: 25px;
}
.fg-review-box table { width: 100%; border-collapse: collapse; }
.fg-review-box tr td { padding: 8px 5px; border-bottom: 1px solid var(--fg-border); font-size: 14px; }
.fg-review-box tr:last-child td { border-bottom: none; }
.fg-review-box td:first-child { color: var(--fg-muted); width: 40%; }
.fg-review-box td:last-child { font-weight: 600; color: var(--fg-navy); }

.fg-paypal-btn {
    background: #0070ba;
    font-size: 16px;
    padding: 14px 35px;
}
.fg-paypal-btn:hover { background: #005ea6; }
.fg-paypal-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ---- DASHBOARD ---- */
.fg-dashboard {
    max-width: 960px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: var(--fg-text);
}
.fg-dash-header {
    background: var(--fg-navy);
    color: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.fg-dash-header h2 { margin: 0; font-size: 22px; }
.fg-dash-header p { margin: 5px 0 0; opacity: .8; }
.fg-status-badge {
    padding: 8px 18px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}
.fg-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}
@media (max-width: 680px) {
    .fg-stats-row { grid-template-columns: repeat(2, 1fr); }
    .fg-dash-grid { grid-template-columns: 1fr !important; }
}
.fg-stat {
    background: #fff;
    border: 1px solid var(--fg-border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.fg-stat-icon { font-size: 22px; margin-bottom: 5px; }
.fg-stat-value { font-size: 16px; font-weight: 700; color: var(--fg-navy); }
.fg-stat-label { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.fg-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.fg-card {
    background: #fff;
    border: 1px solid var(--fg-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}
.fg-card h3 {
    margin: 0 0 18px;
    color: var(--fg-navy);
    font-size: 17px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fg-border);
}
.fg-plan-badge {
    display: inline-block;
    background: var(--fg-navy);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.fg-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.fg-feature-list li { padding: 5px 0; border-bottom: 1px solid var(--fg-bg); }
.fg-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fg-info-table th {
    text-align: left;
    background: var(--fg-bg);
    padding: 8px 10px;
    color: var(--fg-muted);
    font-size: 12px;
}
.fg-info-table td { padding: 9px 10px; border-bottom: 1px solid var(--fg-bg); }
.fg-info-table td:first-child { color: var(--fg-muted); width: 38%; }
.fg-support-card { grid-column: 1 / -1; }
.fg-support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    font-size: 14px;
}
.fg-support-grid a { color: var(--fg-navy); }
.fg-login-box {
    text-align: center;
    padding: 60px 30px;
    border: 1px solid var(--fg-border);
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
}
.fg-login-icon { font-size: 50px; margin-bottom: 15px; }
.fg-login-box h3 { color: var(--fg-navy); margin: 0 0 10px; }
.fg-login-box p { color: var(--fg-muted); margin-bottom: 20px; }
