/* ═══════════════════════════════════════════════════════════
   vDRIVER — Public Layout CSS
   Pages : login · registration · restore · verification
   Used by: login_layout.php · public_layout.php
   NOTE: all selectors use .vd-* prefix — no !important needed
   because this file loads last and uses higher specificity than
   Bootstrap's single-class selectors.
═══════════════════════════════════════════════════════════ */

:root {
    --vd-black:      #0a0a0a;
    --vd-dark:       #1a1a1a;
    --vd-mid:        #2a2a2a;
    --vd-border:     #3a3a3a;
    --vd-text:       #f8f9fa;
    --vd-muted:      #9ca3af;
    --vd-blue:       #2563eb;
    --vd-blue-dk:    #1d4ed8;
    --vd-blue-deep:  #1e40af;
    --vd-orange:     #f97316;
    --vd-orange-dk:  #ea580c;
    --vd-red:        #ef4444;
    --vd-green:      #22c55e;
}

/* ─── Reset html font-size (Bootstrap 3 sets 10px which shrinks everything) ── */
html { font-size: 16px !important; }

/* ─── Page ─────────────────────────────────────────────── */
body.vd-public {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-size: 16px;
    color: var(--vd-text) !important;
    background-color: var(--vd-black) !important;
    background-image: url('https://vdriver.pt/wp-content/uploads/2024/10/pexels-pavel-s-62575183-8611834-1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    -webkit-font-smoothing: antialiased;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;   /* prevent horizontal scroll from any overflow */
}

/* ─── Overlay ───────────────────────────────────────────── */
.vd-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 6, 10, 0.72),
        rgba(37, 99, 235, 0.12),
        rgba(6, 6, 10, 0.78)
    );
    z-index: 0;
    pointer-events: none;
}

/* ─── Fixed Header ──────────────────────────────────────── */
.vd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vd-mid);
    box-shadow: 0 2px 20px rgba(37, 99, 235, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.vd-header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.vd-logo a { display: inline-block; line-height: 0; }
.vd-logo img { height: 50px; width: auto; filter: brightness(1.1); }

/* Navigation */
.vd-nav { display: flex; align-items: center; gap: 1.5rem; }
.vd-nav-contacts { display: flex; align-items: center; gap: 0.8rem; }

.vd-contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 28px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.vd-contact-icon:hover { color: #fff; transform: translateY(-2px); text-decoration: none; }

.vd-nav-menu { position: relative; }

.vd-menu-btn {
    background: transparent;
    border: 2px solid var(--vd-blue);
    color: var(--vd-text);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    transition: all 0.3s;
    white-space: nowrap;
}
.vd-menu-btn:hover { background: var(--vd-blue); color: #fff; }
.vd-menu-btn span { font-size: 1.2rem; }

.vd-menu-drop {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--vd-mid);
    border: 1px solid var(--vd-border);
    border-radius: 12px;
    min-width: 190px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 2000;
    overflow: hidden;
}
.vd-menu-drop.open { opacity: 1; visibility: visible; transform: translateY(0); }
.vd-menu-drop a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--vd-text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--vd-border);
    transition: background 0.15s;
}
.vd-menu-drop a:last-child { border-bottom: none; }
.vd-menu-drop a:hover { background: var(--vd-blue); color: #fff; text-decoration: none; }

/* ─── Main content area ─────────────────────────────────── */
.vd-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 1.5rem 80px;
    position: relative;
    z-index: 1;
}

/* ─── Glass card ────────────────────────────────────────── */
.vd-card {
    width: 100%;
    max-width: 460px;
    background: rgba(8, 10, 18, 0.60);
    backdrop-filter: blur(32px) saturate(1.9) brightness(1.08);
    -webkit-backdrop-filter: blur(32px) saturate(1.9) brightness(1.08);
    border-radius: 24px;
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 1px 0 0 rgba(255, 255, 255, 0.07),
        0 24px 60px rgba(0, 0, 0, 0.50);
    padding: 1.5rem 2.5rem 2.5rem;
    position: relative;
}
.vd-card-wide { max-width: 800px; }

/* ─── Back-to-simulator button ──────────────────────────── */
.vd-back-btn-side {
    position: absolute;
    top: 0;
    right: calc(100% + 12px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(8, 10, 18, 0.60);
    backdrop-filter: blur(32px) saturate(1.9) brightness(1.08);
    -webkit-backdrop-filter: blur(32px) saturate(1.9) brightness(1.08);
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 4px 16px rgba(0, 0, 0, 0.4);
    padding: 0;
    z-index: 10;
}
.vd-back-btn-side button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
}
.vd-back-btn-side button:hover { color: rgba(255,255,255,0.9); }

/* ─── Typography ────────────────────────────────────────── */
.vd-card h3.form-title { display: none !important; }
.vd-card > p { color: var(--vd-muted); font-size: 0.88rem; text-align: center; margin-bottom: 1.5rem; }
/* Hide any old logo image injected via CFG_LOGIN_PAGE_CONTENT — we show the real logo via .vd-login-logo */
.vd-card p img { display: none !important; }

/* ─── Login card logo ───────────────────────────────────── */
.vd-login-logo {
    text-align: center;
    margin-bottom: 0.8rem;
}
.vd-login-logo img {
    height: 96px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    filter: brightness(1.1);
}

/* ─── Labels ────────────────────────────────────────────── */
.vd-card label, .vd-card .control-label {
    color: rgba(255,255,255,0.9) !important;
    font-size: 14px;
    font-weight: 600;
    text-align: left !important;
}
.vd-card .required-label { color: #ff4757; margin-left: 3px; }

/* ─── Form groups ───────────────────────────────────────── */
/* ─── Form field base: zero out all Bootstrap margins on form-group ─── */
.vd-card .form-group,
.vd-card .form-horizontal .form-group {
    margin: 0 !important;
}

/* Login card: spacing between fields */
.vd-card .login-form .form-group {
    margin-bottom: 18px !important;
}

/* Label above input */
.vd-card .form-group > .control-label {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0 0 4px 0 !important;
}
.vd-card .form-group > div[class*="col-"] {
    float: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ─── 2-column layout (registration) ─────────────────────────────────
   .form-body stays as a block — avoids interfering with tab-content/
   nav-tabs wrappers that Rukovoditel injects when multiple tabs exist.
   
   Only .row.forms-rows gets flex (2-column side-by-side layout).
   Columns inside forms-rows also get flex-column for stacked fields.
   Margin-bottom handles inter-row spacing uniformly.
   ─────────────────────────────────────────────────────────────────── */

/* Standalone .form-group (not inside .forms-rows): 25px below */
.vd-card-wide .form-body .form-group:not(.forms-rows .form-group) {
    margin-bottom: 25px !important;
}

/* forms-rows container: flex row, 25px column gap, 25px below */
.vd-card-wide .form-body .row.forms-rows {
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin-left:  0 !important;
    margin-right: 0 !important;
    margin-bottom: 25px !important;
}

/* Kill Bootstrap clearfix pseudo-elements (become flex items otherwise) */
.vd-card-wide .form-body .row.forms-rows::before,
.vd-card-wide .form-body .row.forms-rows::after {
    display: none !important;
}

/* Columns inside forms-rows: equal width flex columns */
.vd-card-wide .form-body .row.forms-rows > [class*="col-"] {
    flex: 1;
    min-width: 0;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 25px;     /* gap between stacked form-groups within the same column */
}

/* Zero out inner form-group margins (column gap handles vertical spacing) */
.vd-card-wide .form-body .row.forms-rows .form-group {
    margin: 0 !important;
}

/* Hide photo upload field */
.vd-card .form-group:has(.uploadifive-button),
.vd-card .form-group:has(.uploadifive),
.vd-card .form-group:has([class*="uploadifive"]),
.vd-card .form-group:has(input[type="file"]) { display: none !important; }

/* Terms checkbox: checkbox and text on same row.
   :not(.error) ensures we never apply flex to the jQuery Validate error label
   (which also carries the control-label class), so jQuery's .hide() can work. */
.vd-card .form-group-single-checkbox .control-label:not(.error),
.vd-card .form-group-single-checkbox div.control-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-weight: 400 !important;
    font-size: 0.87rem !important;
    color: var(--vd-orange) !important;
    line-height: 1.5 !important;
    cursor: default !important;
}
/* Only the tiny checkbox wrapper is the clickable toggle */
.vd-card .form-group-single-checkbox .terms-checkbox-only {
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}
.vd-card .form-group-single-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin: 3px 0 0 !important;
    width: 15px;
    height: 15px;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
}
.vd-card .form-group-single-checkbox .control-label a {
    color: var(--vd-orange) !important;
    text-decoration: underline !important;
}
/* Hide jQuery Validate success/error labels on the terms checkbox — the tick on the box is enough */
.vd-card .form-group-single-checkbox label.valid,
.vd-card .form-group-single-checkbox label.error:empty,
#registration_form label.valid { display: none !important; }

/* Registration button row (.modal-footer rendered inside the card) */
.vd-card .modal-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1rem 0 0 !important;
    margin-top: 1rem;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: wrap;
}
.vd-card .modal-footer::before,
.vd-card .modal-footer::after { display: none !important; }
/* Error banner spans full width above the buttons */
.vd-card #form-error-container { flex: 0 0 100%; order: -1; min-width: 0; }
.vd-card .primary-modal-action-loading { display: none !important; }
/* Both buttons share the row equally */
.vd-card .modal-footer .btn-primary,
.vd-card .modal-footer a.btn.btn-default { flex: 1 !important; justify-content: center !important; text-align: center !important; }

/* ─── Inputs ────────────────────────────────────────────── */
.vd-card .form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    height: auto;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
}
.vd-card .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}
.vd-card .form-control::placeholder { color: rgba(255,255,255,0.4); }
.vd-card .form-control:-webkit-autofill,
.vd-card .form-control:-webkit-autofill:hover,
.vd-card .form-control:-webkit-autofill:focus,
.vd-card .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #14161e inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}
.vd-card textarea.form-control { height: auto; min-height: 85px; padding: 11px 15px; resize: vertical; }

/* Input icon wrapper */
.vd-card .input-icon { position: relative; }
.vd-card .input-icon > i {
    position: absolute; top: 50%; left: 13px; transform: translateY(-50%);
    color: var(--vd-muted); z-index: 1; font-size: 13px; pointer-events: none;
}
.vd-card .input-icon .form-control { padding-left: 40px; }
.vd-card .visible-ie8, .vd-card .visible-ie9 { display: none; }

/* ─── Form actions row ──────────────────────────────────── */
.vd-card .form-actions {
    background: transparent;
    border-top: none;
    padding: 0;
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.vd-card .form-actions::before, .vd-card .form-actions::after { display: none; }

/* Remember Me half — override Bootstrap's block/absolute checkbox system entirely */
.vd-card .form-actions .checkbox {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    /* Bootstrap positions the input as position:absolute;margin-left:-20px inside padding-left:20px.
       We flatten the whole thing to an inline-flex row so the input stays in normal flow. */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;   /* center within its half */
    gap: 6px;
    color: var(--vd-muted);
    font-size: 0.84rem;
    font-weight: normal;
    cursor: pointer;
}
/* Bring Bootstrap's absolutely-positioned input back into normal flow */
.vd-card .form-actions .checkbox input[type="checkbox"] {
    position: static !important;
    margin: 0 !important;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

.vd-card .vd-forgot-link {
    flex: 1;
    min-width: 0;
    text-align: center;        /* center within its half */
    white-space: nowrap;
    color: var(--vd-muted);
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.2s;
}
.vd-card .vd-forgot-link:hover { color: var(--vd-orange); text-decoration: none; }

/* ─── Restore password description ─────────────────────── */
.vd-restore-info {
    text-align: center !important;
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin: -0.3rem 0 1.6rem !important;
    line-height: 1.55 !important;
}

/* ─── Buttons ───────────────────────────────────────────── */
/* Login blue button — beats Bootstrap's .btn-info (2 classes > 1) */
.vd-card .btn-info, .vd-card .btn-info.pull-right {
    background-color: var(--vd-blue);
    border-color: var(--vd-blue);
    color: #fff;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 600;
    height: 46px;
    min-width: 105px;
    padding: 0 20px;
    text-shadow: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: background-color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.vd-card .btn-info:hover, .vd-card .btn-info.pull-right:hover, .vd-card .btn-info:focus {
    background-color: var(--vd-blue-dk);
    border-color: var(--vd-blue-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}
.vd-card .btn-info:active {
    transform: scale(0.97);
    box-shadow: none;
    background-color: var(--vd-blue-deep);
    border-color: var(--vd-blue-deep);
}

/* Register orange button */
.vd-card .btn-primary {
    background: linear-gradient(135deg, var(--vd-orange), var(--vd-orange-dk));
    border-color: transparent;
    color: #fff;
    border-radius: 50px;
    font-size: 0.97rem;
    font-weight: 700;
    height: 48px;
    padding: 0 2.2rem;
    text-shadow: none;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.vd-card .btn-primary:hover, .vd-card .btn-primary:focus {
    background: linear-gradient(135deg, var(--vd-orange-dk), #c2410c);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.65);
}

/* Ghost secondary button */
.vd-card .btn-registration, .vd-card .btn-default, .vd-card a.btn.btn-default {
    background: transparent !important;
    border: 1px solid var(--vd-blue) !important;
    border-radius: 50px !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    height: auto !important;
    padding: 0.55rem 1.4rem !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.vd-card .btn-registration:hover, .vd-card .btn-default:hover, .vd-card a.btn.btn-default:hover {
    border-color: var(--vd-orange) !important;
    color: var(--vd-orange) !important;
    background: rgba(249, 115, 22, 0.08) !important;
    text-decoration: none !important;
}

/* ─── Forgot password & extra link rows ─────────────────── */
.vd-card .forget-password {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.vd-card .forget-password p, .vd-card .create-account p { margin: 0; }
.vd-card .forget-password a, .vd-card .forget-password p a, .vd-card .create-account p a {
    color: var(--vd-muted); font-size: 0.86rem; text-decoration: none; transition: color 0.2s;
}
.vd-card .forget-password a:hover, .vd-card .create-account p a:hover {
    color: var(--vd-orange); text-decoration: none;
}
.vd-card .create-account { margin-top: 10px; text-align: center; }

/* ─── Login bottom action row ───────────────────────────── */
.vd-card .vd-login-bottom {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.vd-card .vd-login-btn {
    flex: 1;
    height: 46px;
    font-size: 0.93rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}
.vd-card button.vd-login-submit {
    background: linear-gradient(135deg, var(--vd-orange), var(--vd-orange-dk));
    border: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}
.vd-card button.vd-login-submit:hover, .vd-card button.vd-login-submit:focus {
    background: linear-gradient(135deg, var(--vd-orange-dk), #c2410c);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.65);
}
.vd-card a.vd-register-btn {
    background: transparent !important;
    border: 1px solid var(--vd-blue) !important;
    color: rgba(255,255,255,0.85) !important;
}
.vd-card a.vd-register-btn:hover {
    border-color: var(--vd-orange) !important;
    color: var(--vd-orange) !important;
    background: rgba(249, 115, 22, 0.08) !important;
    text-decoration: none !important;
}

/* ─── Alerts ────────────────────────────────────────────── */
.vd-card .alert {
    border-radius: 10px; font-size: 0.87rem; padding: 11px 15px;
    margin-bottom: 16px; border: 1.5px solid;
}
.vd-card .alert-danger  { background: rgba(239, 68, 68, 0.13);  border-color: var(--vd-red);   color: #fca5a5; }
.vd-card .alert-success { background: rgba(34, 197, 94, 0.11);  border-color: var(--vd-green); color: #86efac; }
.vd-card .alert-info    { background: rgba(37, 99, 235, 0.12);  border-color: var(--vd-blue);  color: #93c5fd; }
.vd-card .alert-warning { background: rgba(251, 191, 36, 0.11); border-color: #fbbf24;         color: #fde68a; }

.vd-card label.error { color: var(--vd-red) !important; font-size: 0.8rem; margin-top: 3px; display: block; }

@keyframes vd-pulse-red {
    0%   { box-shadow: 0 0 0 0   rgba(239,68,68,0.75); border-color: #ef4444; }
    55%  { box-shadow: 0 0 0 7px rgba(239,68,68,0);    border-color: #ef4444; }
    100% { box-shadow: 0 0 0 0   rgba(239,68,68,0);    border-color: #ef4444; }
}
.vd-card input.error,
.vd-card textarea.error,
.vd-card select.error {
    border-color: #ef4444 !important;
    animation: vd-pulse-red 0.55s ease-out;
}

/* ─── Upload / file input ───────────────────────────────── */
.vd-card .btn-file, .vd-card .uploadifive-button {
    background: var(--vd-mid); border: 1px solid var(--vd-border); border-radius: 8px;
    color: var(--vd-muted); font-size: 0.84rem; padding: 7px 14px; cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.vd-card .btn-file:hover { border-color: var(--vd-blue); color: var(--vd-text); }

/* Maintenance banner */
.vd-card .maintenance-mode-message {
    background: rgba(251, 191, 36, 0.1); border-left: 3px solid #fbbf24; color: #fde68a;
    border-radius: 8px; padding: 10px 14px; font-size: 0.87rem; margin-bottom: 14px;
}

/* ─── Footer ────────────────────────────────────────────── */
.vd-footer {
    background: var(--vd-dark);
    border-top: 1px solid var(--vd-mid);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.vd-footer-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 2rem;
}
.vd-footer-logo img { height: 40px; width: auto; filter: brightness(1.1); }
.vd-footer-links { display: flex; align-items: center; gap: 0; }
.vd-footer-links a {
    color: var(--vd-muted); text-decoration: none;
    margin: 0 0.5rem; transition: color 0.2s;
}
.vd-footer-links a:hover { color: var(--vd-orange); text-decoration: none; }
.vd-footer-copy { color: var(--vd-muted); margin: 0; }

/* ─── Responsive ────────────────────────────────────────── */
/* Back button collapses above card when screen too narrow to fit side-by-side */
@media (max-width: 1000px) {
    .vd-back-btn-side {
        position: static;
        width: 100%;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .vd-back-btn-side button {
        padding: 10px 14px;
    }
}

/* ─── Mobile / Tablet Responsive ───────────────────────────────────────────── */

/* 1. iOS/Safari: background-attachment:fixed causes blank-white flicker on scroll.
      Switch to scroll on any touch device / narrow viewport. */
@media (max-width: 1024px) {
    body.vd-public {
        background-attachment: scroll !important;
    }
}

/* 2. Inputs: font-size must be ≥ 16px on iOS to prevent auto-zoom on focus.
      Also bump up touch area for selects and textareas. */
.vd-card .form-control {
    font-size: 16px;       /* was 15px — iOS zooms at <16px */
    min-height: 48px;      /* Apple HIG minimum tap target */
}
.vd-card textarea.form-control { min-height: 90px; }

/* 3. Remove tap highlight on interactive elements (blue flash on Android/iOS) */
.vd-card a,
.vd-card button,
.vd-card input,
.vd-card label,
.vd-card .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;   /* removes 300ms click delay */
}

/* 4. Single-column form on narrow screens.
      The existing rule targets grid-template-columns but forms-rows uses flex — fix it. */
@media (max-width: 860px) {
    .vd-card-wide .form-body {
        grid-template-columns: 1fr;
    }
}

/* 5. Tablet (≤ 768px) */
@media (max-width: 768px) {
    .vd-header-inner { padding: 0 1rem; gap: 0.8rem; }
    .vd-logo img { height: 34px; }
    .vd-nav-contacts { display: none; }

    /* Push content below the fixed header (header ≈ 67px on mobile, +40px safety margin) */
    .vd-main { padding: 110px 1rem 70px; }

    /* Card: slightly tighter, still comfortable */
    .vd-card { padding: 1.8rem 1.4rem; }

    /* Wide card: full viewport width with a little breathing room.
       align-self: flex-start prevents a tall card from centering and
       bleeding behind the fixed header — it anchors to the top of vd-main
       (which already has 80px padding-top to clear the header). */
    .vd-card-wide {
        max-width: 100%;
        width: 100%;
        align-self: flex-start;
    }

    /* Shrink horizontal gutters when showing wide card on mobile */
    .vd-main:has(.vd-card-wide) { padding-left: 0.5rem; padding-right: 0.5rem; }

    /* Registration 2-col → 1-col on tablet */
    .vd-card-wide .form-body .row.forms-rows {
        flex-direction: column;
        gap: 0;
    }
    .vd-card-wide .form-body .row.forms-rows > [class*="col-"] {
        width: 100% !important;
        flex: none !important;
    }
    /* Restore per-group bottom margin when stacked (column gap no longer applies) */
    .vd-card-wide .form-body .row.forms-rows .form-group {
        margin-bottom: 16px !important;
    }
    /* Row-level bottom margin */
    .vd-card-wide .form-body .row.forms-rows {
        margin-bottom: 0 !important;
    }

    /* Single-column field ORDER: username, firstname, lastname, password, email, phone.
       Row 2 desktop is [password | lastname]. Reversing it gives lastname → password. */
    .vd-card-wide .form-body .row.forms-rows:nth-child(2) {
        flex-direction: column-reverse;
    }

    .vd-footer-inner { flex-direction: column; text-align: center; gap: 0.6rem; padding: 0 1rem; }
    .vd-footer-links { flex-wrap: wrap; justify-content: center; }
}

/* 6. Small phone (≤ 480px) */
@media (max-width: 480px) {
    .vd-card { padding: 1.4rem 1rem; border-radius: 16px; }
    .vd-main { padding: 110px 0.75rem 60px; }

    /* Shrink login logo so it doesn't dominate the card */
    .vd-login-logo img { height: 64px; }

    /* Login page: stack buttons vertically on small phone */
    .vd-card .vd-login-bottom { flex-direction: column; }
    .vd-card .vd-login-btn { flex: none; width: 100%; }

    /* Registration page: stack footer buttons vertically */
    .vd-card .modal-footer {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .vd-card .modal-footer .btn-primary,
    .vd-card .modal-footer a.btn.btn-default {
        width: 100% !important;
        flex: none !important;
    }

    /* Slightly smaller form text */
    .vd-card .form-control { padding: 12px 14px; }
    .vd-card label, .vd-card .control-label { font-size: 13px; }
}

/* 7. Very small phones (≤ 360px) */
@media (max-width: 360px) {
    .vd-card { padding: 1.2rem 0.9rem; }
    .vd-header-inner { gap: 0.5rem; }
    .vd-logo img { height: 30px; }
}

:root {
    /* vDRIVER Dark Mode Color Scheme */
    --black: #0a0a0a;
    --dark-grey: #1a1a1a;
    --medium-grey: #2a2a2a;
    --light-grey: #3a3a3a;
    --text-grey: #9ca3af;
    
    --blue-primary: #2563eb;
    --blue-secondary: #1e40af;
    --blue-light: #3b82f6;
    
    --red-accent: #ef4444;
    --red-dark: #dc2626;
    
    --orange-accent: #f97316;
    --orange-light: #fb923c;
    
    --white: #ffffff;
    --white-soft: #f8f9fa;
    
    /* Functional colors */
    --primary-color: var(--blue-primary);
    --secondary-color: var(--orange-accent);
    --danger-color: var(--red-accent);
    
    --text-primary: var(--white-soft);
    --text-secondary: var(--text-grey);
    --bg-primary: var(--black);
    --bg-secondary: var(--dark-grey);
    --bg-tertiary: var(--medium-grey);
}

/* Override body styles for public forms */
body.public-layout {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    line-height: 1.6;
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
    background-image: url('https://vdriver.pt/wp-content/uploads/2024/10/pexels-pavel-s-62575183-8611834-1.jpg') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header */
.vdriver-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(37, 99, 235, 0.1);
    border-bottom: 1px solid var(--medium-grey);
    z-index: 1000;
    padding: 1rem 0;
}

.vdriver-header .vdriver-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.vdriver-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vdriver-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vdriver-logo img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.vdriver-nav-login {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.vdriver-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Form Container */
.vdriver-form-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    position: relative;
}

.vdriver-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.6),
        rgba(37, 99, 235, 0.15),
        rgba(239, 68, 68, 0.08),
        rgba(10, 10, 10, 0.7)
    );
    z-index: 0;
}

.vdriver-form-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 3rem;
}

.vdriver-form-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--white), var(--blue-light), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vdriver-form-description {
    font-size: 1.1rem;
    color: var(--text-grey);
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Styling */
.vdriver-form-container .form-horizontal .form-group {
    margin-bottom: 1.5rem;
}

.vdriver-form-container .control-label {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.vdriver-form-container .required-label {
    color: var(--orange-accent);
    margin-right: 0.3rem;
}

.vdriver-form-container .form-control {
    background: rgba(42, 42, 42, 0.9) !important;
    border: 1px solid var(--light-grey) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.vdriver-form-container .form-control:focus {
    border-color: var(--blue-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    background: rgba(42, 42, 42, 1) !important;
}

.vdriver-form-container select.form-control {
    cursor: pointer;
}

.vdriver-form-container textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Modal Footer */
.vdriver-form-container .modal-footer {
    background: transparent;
    border: none;
    padding: 2rem 0 0;
    text-align: center;
}

.vdriver-form-container .btn-primary-modal-action,
.vdriver-form-container .btn-primary {
    background: linear-gradient(135deg, var(--orange-accent), #ea580c) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 1rem 3rem !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: all 0.3s !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5) !important;
    cursor: pointer;
}

.vdriver-form-container .btn-primary-modal-action:hover,
.vdriver-form-container .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 35px rgba(249, 115, 22, 0.7) !important;
}

/* Error Messages */
.vdriver-form-container label.error {
    color: var(--red-accent) !important;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

#form-error-container {
    color: var(--red-accent);
    margin-bottom: 1rem;
}

/* Footer */
.vdriver-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--dark-grey);
    color: var(--text-secondary);
    padding: 1rem 0;
    border-top: 1px solid var(--light-grey);
    z-index: 999;
}

.vdriver-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.vdriver-footer-logo img {
    height: 30px;
    filter: brightness(1.1);
}

.vdriver-footer-text {
    color: var(--text-grey);
    font-size: 0.85rem;
    margin: 0;
}

.vdriver-footer-text a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s;
}

.vdriver-footer-text a:hover {
    color: var(--orange-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .vdriver-header .vdriver-container {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .vdriver-logo img {
        height: 35px;
    }
    
    .vdriver-nav-login {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .vdriver-form-section {
        padding: 100px 1rem 80px;
    }
    
    .vdriver-form-container {
        padding: 2rem 1.5rem;
    }
    
    .vdriver-form-title {
        font-size: 1.8rem;
    }
    
    .vdriver-form-description {
        font-size: 1rem;
    }
    
    .vdriver-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .vdriver-footer-logo img {
        height: 25px;
    }
    
    .vdriver-footer-text {
        font-size: 0.8rem;
    }
}

/* Instruction Pages */
.vdriver-instruction-pages {
    margin: 2rem 0;
}

.instruction-page {
    text-align: center;
    padding: 2rem;
}

.instruction-progress {
    margin-bottom: 2rem;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.progress-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-grey);
    transition: all 0.3s;
}

.progress-dots .dot.active {
    background: var(--blue-primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    transform: scale(1.3);
}

.progress-dots .dot.completed {
    background: var(--orange-accent);
}

.progress-text {
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
}

.instruction-content {
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.btn-instruction {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-instruction:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

/* Results Warning */
.results-warning {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--red-accent);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        border-color: var(--red-accent);
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
    50% {
        border-color: var(--red-dark);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    }
}

.warning-icon {
    font-size: 1.5rem;
}

.warning-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

/* Disabled button state */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: var(--light-grey) !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Results count animation */
.results-count-change {
    animation: resultsBounce 0.6s ease;
}

@keyframes resultsBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: var(--orange-accent);
    }
}

/* Field completion checkmarks */
.field-checkmark {
    color: var(--orange-accent);
    margin-left: 0.5rem;
    font-weight: bold;
    animation: checkmarkAppear 0.3s ease;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tab enhancement */
.nav-tabs {
    border-bottom: 2px solid var(--light-grey) !important;
    margin-bottom: 2rem !important;
}

.nav-tabs > li > a {
    color: var(--text-secondary) !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.3s !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
    color: var(--blue-primary) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid var(--blue-primary) !important;
}

@media (max-width: 768px) {
    .instruction-content {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .instruction-content p {
        font-size: 1rem;
    }
    
    .btn-instruction {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vdriver-form-title {
        font-size: 1.5rem;
    }
    
    .vdriver-form-container .btn-primary-modal-action,
    .vdriver-form-container .btn-primary {
        width: 100%;
        padding: 0.9rem 2rem !important;
        font-size: 1.1rem !important;
    }
    
    .instruction-content {
        padding: 1.2rem;
    }
    
    .instruction-content p {
        font-size: 0.95rem;
    }
    
    .btn-instruction {
        width: 100%;
        padding: 0.9rem 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Login / Auth / Public Layout  —  Overlay · Glass Card · Form Elements
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Background enforcement (vd-public + public-layout classes) ── */
body.vd-public.public-layout,
body.public-layout {
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
}

/* ── Dark overlay on background image ── */
.vdriver-login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.72) 0%,
        rgba(37, 99, 235, 0.07) 50%,
        rgba(10, 10, 10, 0.80) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* ── Narrow glass card for login / simple auth pages ── */
.vdriver-login-card {
    max-width: 440px !important;
}

/* ── Form section — push content below fixed header ── */
.vdriver-form-section {
    position: relative;
    z-index: 1;
}

/* ── Header logo height ── */
.vdriver-header .vdriver-logo img {
    height: 44px;
    width: auto;
}

/* ── Form title heading ── */
.vdriver-form-container .form-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.vdriver-form-container > p {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 20px;
}

/* ── Input icon wrapper ── */
.vdriver-form-container .input-icon {
    position: relative;
}

.vdriver-form-container .input-icon > i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 2;
    font-size: 14px;
    pointer-events: none;
}

.vdriver-form-container .input-icon .form-control {
    padding-left: 44px !important;
}

/* ── Form inputs ── */
.vdriver-form-container .form-control {
    height: 48px !important;
}

.vdriver-form-container textarea.form-control {
    height: auto !important;
    min-height: 90px;
}

.vdriver-form-container .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(42, 42, 42, 0.95) inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

.vdriver-form-container .form-control::placeholder {
    color: #6b7280;
}

/* ── Form groups ── */
.vdriver-form-container .form-group {
    margin-bottom: 14px;
}

/* ── Form actions row (login bottom bar) ── */
.vdriver-form-container .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.vdriver-form-container .form-actions .checkbox {
    color: #9ca3af;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* ── Login / submit button ── */
.vdriver-form-container .form-actions .btn-info,
.vdriver-form-container .btn-info.pull-right,
.vdriver-form-container .form-actions button[type="submit"] {
    background: #2563eb !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    height: 48px !important;
    min-width: 120px;
    padding: 0 24px !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background 0.15s, transform 0.1s;
    cursor: pointer;
}

.vdriver-form-container .form-actions .btn-info:hover,
.vdriver-form-container .btn-info.pull-right:hover,
.vdriver-form-container .form-actions button[type="submit"]:hover {
    background: #1d4ed8 !important;
}

.vdriver-form-container .form-actions .btn-info:active,
.vdriver-form-container .form-actions button[type="submit"]:active {
    transform: scale(0.97);
}

/* ── Forgot password / extra link rows ── */
.vdriver-form-container .forget-password,
.vdriver-form-container .create-account {
    margin-top: 18px;
}

.vdriver-form-container .forget-password {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.vdriver-form-container .forget-password p,
.vdriver-form-container .create-account p {
    margin: 0;
}

.vdriver-form-container .forget-password a,
.vdriver-form-container .forget-password p a,
.vdriver-form-container .create-account p a {
    color: #9ca3af;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.vdriver-form-container .forget-password a:hover,
.vdriver-form-container .create-account p a:hover {
    color: #f97316;
}

/* ── Registration ghost button ── */
.vdriver-form-container .btn-registration {
    background: transparent !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 10px !important;
    color: #9ca3af !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    height: 38px !important;
    padding: 0 18px !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, color 0.2s;
}

.vdriver-form-container .btn-registration:hover {
    border-color: #f97316 !important;
    color: #f97316 !important;
}

/* ── Labels ── */
.vdriver-form-container .control-label {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.vdriver-form-container .required-label {
    color: var(--orange-accent);
    margin-right: 3px;
}

/* ── Alert boxes ── */
.vdriver-form-container .alert {
    border-radius: 10px !important;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.vdriver-form-container .alert-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

.vdriver-form-container .alert-success {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    color: #86efac !important;
}

.vdriver-form-container .alert-info {
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1px solid rgba(37, 99, 235, 0.35) !important;
    color: #93c5fd !important;
}

.vdriver-form-container .alert-warning {
    background: rgba(251, 191, 36, 0.12) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    color: #fde68a !important;
}

/* ── Validation error labels ── */
.vdriver-form-container label.error {
    color: #ef4444 !important;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* ── Registration horizontal form ── */
.vdriver-form-container .form-horizontal .form-group {
    margin-bottom: 12px;
}

.vdriver-form-container .form-horizontal .control-label {
    padding-top: 12px;
}

/* ── Maintenance mode message ── */
.vdriver-form-container .maintenance-mode-message {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* ── Fixed copyright footer ── */
.vdriver-public-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px 16px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.72rem;
    pointer-events: none;
}

.vdriver-public-footer a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    pointer-events: all;
}

.vdriver-public-footer a:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* ── IE hidden labels ── */
.vdriver-form-container .visible-ie8,
.vdriver-form-container .visible-ie9 {
    display: none !important;
}
