/* CYBER PALETTE VARIABLES */
:root {
    --primary: #6C63FF;    /* Cyber Purple */
    --secondary: #2C2C34;  /* Steel Grey */
    --accent: #42EADD;     /* Aqua Blue */
    --bg: #FAFAFF;         /* Whisper White */
    --text: #1F1F2D;       /* Gunmetal */
}

.bos-wrapper {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    max-width: 750px;
    margin: 20px auto;
    color: var(--text);
}

/* --- APP CARD --- */
#bos-app-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.15);
    border: 1px solid #eee;
}

.bos-header h2 { color: var(--primary); margin: 0 0 5px 0; }
.bos-header p { color: #777; margin: 0 0 25px 0; font-size: 0.95em; }

/* PROGRESS BAR */
.bos-progress {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.bos-step { font-weight: bold; color: #ccc; font-size: 0.9em; text-transform: uppercase; }
.bos-step.active { color: var(--primary); }

/* FORM LAYOUT */
.bos-section { display: none; animation: fadeUp 0.3s ease-out; }
.bos-section.active-section { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }

.form-group { margin-bottom: 15px; }
.row { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
.col { flex: 1; min-width: 180px; }

label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--secondary); font-size: 0.9em; }
input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--secondary);
    transition: 0.3s;
}
input:focus { outline: none; border-color: var(--primary); }

/* VIN AREA */
.vin-group { display: flex; gap: 10px; }
#decode-vin-btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
#decode-vin-btn:hover { background: var(--primary); }
#vin-status { display: block; margin-top: 5px; font-size: 0.85em; }

/* BUTTONS */
.btn-row { display: flex; gap: 15px; margin-top: 25px; }
.btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
}
.btn-prev {
    background: #eee;
    color: #555;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.btn-download {
    background: var(--accent);
    color: var(--secondary);
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    flex: 2;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(66, 234, 221, 0.4);
}
.btn-download:hover { transform: translateY(-2px); }

/* --- SIGNATURE FIX --- */
.sig-container { margin-bottom: 20px; }
.canvas-wrap {
    border: 2px dashed #ccc;
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
    /* IMPORTANT: Forces height so it doesn't collapse when hidden */
    height: 180px; 
    width: 100%;
}
canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* IMPORTANT: Prevents mobile scrolling while signing */
    touch-action: none; 
    cursor: crosshair;
}
.clear-link { float: right; color: #e74c3c; font-size: 0.8em; cursor: pointer; text-decoration: underline; margin-top: 4px;}

/* --- SEO CARDS --- */
.bos-seo-wrap { margin-top: 50px; }
.bos-seo-wrap h3 { text-align: center; color: var(--secondary); }

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.seo-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.seo-card h4 { color: var(--primary); margin-top: 0; }

/* FAQ */
.bos-faq details {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
}
.bos-faq summary { font-weight: bold; color: var(--secondary); }
.bos-faq p { margin-top: 10px; margin-bottom: 0; color: #555; line-height: 1.5; }