/* ------------------------------------------------------------------
   styles.css — Shared global styling, themes, inputs, buttons
   Served as the single stylesheet for the onboarding SPA.
   Palette: Alabaster Grey D9DDDC | Muted Teal 92A89D | Evergreen 00311A |
            Black Forest 004823 | Grey Olive 818985 |
            Legacy: Cool Steel A0A09F | Grey 7F7E7E | White FEFEFE | Dust Grey D6D6D6
------------------------------------------------------------------- */

:root {
    --alabaster-grey: #D9DDDC;
    --muted-teal: #92A89D;
    --evergreen: #00311A;
    --black-forest: #004823;
    --grey-olive: #818985;
}

body, html {
    background: radial-gradient(circle at center, #FEFEFE 0%, #D9DDDC 100%);
    color: #7F7E7E;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

h1, h2, h3, h4, p, span { color: #004823 !important; }

label, input, select, textarea, .radio-label, .checkbox-label { color: #004823 !important; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(254, 254, 254, 0.85);
    border-bottom: 1px solid #A0A09F;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #7F7E7E !important;
    cursor: pointer;
}
.nav-brand span { font-weight: 300; color: #8C8C8C !important; }

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    font-size: 14px;
    color: #8C8C8C !important;
    font-weight: 600;
    margin-right: 8px;
}

.admin-nav-btn {
    background: #e11d48;
    color: white !important;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    border: none;
}

.centered-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 20px;
}

.form-group { margin-bottom: 20px; }
.row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 200px; }

label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="file"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    background: #FEFEFE;
    border: 1px solid #A0A09F;
    color: #004823;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="file"] {
    padding: 8px;
    background: #D6D6D6;
    cursor: pointer;
}

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.radio-label, .checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: normal; font-size: 14px; cursor: pointer; line-height: 1.4; }

*:focus, *:focus-within { outline: none !important; }
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px #8C8C8C !important;
    border-color: #8C8C8C !important;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:hover { opacity: 0.9; }
.btn-primary { background: #004823; color: #FEFEFE; width: 100%; padding: 14px; font-size: 16px; text-align: center; }
.btn-primary:hover { background: #00311A; }
.btn-secondary { background: #7F7E7E; color: #FEFEFE; }
.btn-danger { background: #dc2626; color: white; }
.btn-outline { background: transparent; border: 1px solid #8C8C8C; color: #7F7E7E; }

.button-row { display: flex; gap: 16px; margin-top: 24px; }
.button-row .btn-secondary { flex: 0 0 auto; }
.button-row .btn-primary { flex: 1; }

.info-card {
    background: #FEFEFE;
    border: 1px solid #A0A09F;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(127, 126, 126, 0.18);
}
.info-card h3 { margin-top: 0; font-size: 18px; font-weight: 700; }

.bullet-list { list-style: none; padding-left: 0; margin: 10px 0 0 0; }
.bullet-list li { margin-bottom: 8px; font-size: 15px; }

.duration-pill {
    background-color: #FEFEFE;
    border: 1px solid #A0A09F;
    border-radius: 50px;
    padding: 12px 24px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin: 15px 0;
}

.autofill-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e !important;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.step-badge {
    background: #A0A09F;
    color: #FEFEFE !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.contract-text-container {
    background: #FEFEFE;
    border: 1px solid #A0A09F;
    border-radius: 8px;
    padding: 24px;
    max-height: 450px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    line-height: 1.6;
    color: #004823;
    margin-bottom: 20px;
}

.contract-text-container h1, .contract-text-container h2, .contract-text-container h3, .contract-text-container h4 {
    color: #004823 !important;
    margin-top: 18px;
    margin-bottom: 8px;
}

.contract-table, .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}
.contract-table th, .contract-table td, .data-table th, .data-table td {
    border: 1px solid #A0A09F;
    padding: 10px 12px;
    text-align: left;
}
.contract-table th, .data-table th {
    background: #D9DDDC;
    color: #004823;
}

.signature-container {
    border: 1px dashed #8C8C8C;
    border-radius: 8px;
    background: #FEFEFE;
    position: relative;
    margin-bottom: 8px;
}
canvas.sig-canvas {
    width: 100%;
    height: 150px;
    display: block;
    cursor: crosshair;
    touch-action: none;
    background: #ffffff;
}

.product-card {
    background: #FEFEFE;
    border: 1px solid #A0A09F;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-title { font-size: 16px; font-weight: bold; color: #004823 !important; }
.product-price { font-size: 14px; font-weight: 600; color: #22c55e !important; }

.hidden { display: none !important; }
.error-msg { color: #ef4444; margin-bottom: 10px; font-weight: bold; font-size: 14px; }
.success-msg { color: #22c55e; margin-bottom: 10px; font-weight: bold; font-size: 14px; }
.auth-banner {
    background: rgba(160, 160, 159, 0.18);
    border: 1px solid #8C8C8C;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.file-hint {
    font-size: 12px;
    color: #004823;
    margin-top: 4px;
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #8C8C8C;
}
.footer-links a {
    color: #8C8C8C;
    text-decoration: none;
    margin: 0 8px;
}
.footer-links a:hover {
    text-decoration: underline;
}
