/* ====================================================================
   Form by Tayyab — Frontend Styles
   Dark (Black & Gold) Theme  v1.3.0
   Developer: Tayyab Shahzad | Cheap City Rides
   ===================================================================== */

/* -- Custom Properties ------------------------------------------------- */
.fbt-wrapper {
    --fbt-gold:        #F2B705;
    --fbt-gold-light:  #FFD23F;
    --fbt-gold-glow:   rgba(242, 183, 5, 0.35);
    --fbt-gold-dim:    rgba(242, 183, 5, 0.12);
    --fbt-black:       #0d0d0d;
    --fbt-dark:        #141414;
    --fbt-card:        #1a1a1a;
    --fbt-card-border: #2e2a1a;
    --fbt-input-bg:    #111111;
    --fbt-input-border:#3a3a3a;
    --fbt-white:       #f0f0f0;
    --fbt-muted:       #999999;
    --fbt-error:       #e05252;
    --fbt-success:     #4caf50;
    --fbt-radius:      12px;
    --fbt-radius-sm:   8px;
    --fbt-shadow:      0 4px 24px rgba(0,0,0,0.5);
    --fbt-transition:  all 0.3s ease;
    --fbt-font:        'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* -- Reset / Base ------------------------------------------------------- */
.fbt-wrapper *,
.fbt-wrapper *::before,
.fbt-wrapper *::after {
    box-sizing: border-box;
}

.fbt-wrapper {
    background: var(--fbt-black) !important;
    color: var(--fbt-white) !important;
    font-family: var(--fbt-font);
    font-size: 15px;
    line-height: 1.6;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 0 48px;
    border-radius: var(--fbt-radius);
    overflow: hidden;
    border: 1px solid #2a2510;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    color-scheme: dark;
}

/* -- Hero Header ------------------------------------------------------- */
.fbt-hero {
    background: linear-gradient(160deg, #1a1500 0%, #0d0d0d 40%, #111100 100%);
    border-bottom: 1px solid #2a2200;
    text-align: center;
    padding: 56px 32px 48px;
    position: relative;
    overflow: hidden;
}

.fbt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(242,183,5,0.15), transparent 70%);
    pointer-events: none;
}

.fbt-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--fbt-gold), transparent);
}

.fbt-logo-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.fbt-logo-icon { font-size: 22px; }

.fbt-logo-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--fbt-gold);
    font-style: normal;
}

.fbt-heading {
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 10px;
    text-shadow: 0 0 40px rgba(242,183,5,0.3);
    line-height: 1.2;
}

.fbt-subheading {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--fbt-gold);
    margin: 0 0 24px;
    font-weight: 600;
    opacity: 0.85;
}

.fbt-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fbt-divider span:not(.fbt-diamond) {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--fbt-gold), transparent);
}

.fbt-diamond {
    color: var(--fbt-gold);
    font-size: 10px;
}

/* -- Cards ------------------------------------------------------------- */
.fbt-card {
    margin: 24px 24px 0;
    background: var(--fbt-card);
    border: 1px solid #2a2510;
    border-radius: var(--fbt-radius);
    overflow: hidden;
    transition: var(--fbt-transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.fbt-card:hover {
    border-color: rgba(242,183,5,0.35);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--fbt-gold-dim);
}

/* -- Plain section (no box/border/background — just aligned spacing) --- */
.fbt-section-plain {
    margin: 24px 24px 0;
}

.fbt-section-plain > .fbt-field {
    margin-bottom: 18px;
}

.fbt-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(to right, #1a1400, #0f0f00);
    border-bottom: 1px solid #2a2200;
    border-left: 3px solid var(--fbt-gold);
}

.fbt-card-icon { font-size: 20px; }

.fbt-card-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fbt-gold);
}

.fbt-card-body {
    padding: 28px 24px 20px;
}

/* -- Grid Rows --------------------------------------------------------- */
.fbt-row {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.fbt-cols-1 { grid-template-columns: 1fr; }
.fbt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fbt-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Tablet: 3-col rows (name, city/province/postal) ease down to 2-col first */
@media (max-width: 760px) {
    .fbt-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Phone: everything stacks to a single column */
@media (max-width: 560px) {
    .fbt-row {
        gap: 14px;
        margin-bottom: 14px;
    }
    .fbt-cols-2,
    .fbt-cols-3 { grid-template-columns: 1fr; }
}

/* -- Fields ------------------------------------------------------------ */
.fbt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fbt-field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fbt-muted) !important;
    transition: color 0.2s;
}

.fbt-field:focus-within > label { color: var(--fbt-gold) !important; }

.fbt-required > label::after {
    content: ' *';
    color: var(--fbt-gold);
}

.fbt-field em {
    font-style: normal;
    color: #555555;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* iOS Safari zooms the page when a focused input/select has font-size
   under 16px — bump to 16px on small screens to prevent that jarring zoom. */
@media (max-width: 480px) {
    .fbt-wrapper input[type="text"],
    .fbt-wrapper input[type="email"],
    .fbt-wrapper input[type="tel"],
    .fbt-wrapper input[type="date"],
    .fbt-wrapper input[type="number"],
    .fbt-wrapper textarea,
    .fbt-wrapper select {
        font-size: 16px !important;
    }
}

/* -- Inputs / Selects -------------------------------------------------- */
.fbt-wrapper input[type="text"],
.fbt-wrapper input[type="email"],
.fbt-wrapper input[type="tel"],
.fbt-wrapper input[type="date"],
.fbt-wrapper input[type="number"],
.fbt-wrapper textarea {
    width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    background: var(--fbt-input-bg) !important;
    border: 1px solid var(--fbt-input-border) !important;
    border-radius: var(--fbt-radius-sm) !important;
    color: #f0f0f0 !important;
    -webkit-text-fill-color: #f0f0f0 !important;
    font-family: var(--fbt-font) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 12px 14px !important;
    transition: var(--fbt-transition);
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}


/* Select — separate rule: -webkit-text-fill-color breaks select in WebKit */
.fbt-wrapper select {
    width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    background: var(--fbt-input-bg) !important;
    border: 1px solid var(--fbt-input-border) !important;
    border-radius: var(--fbt-radius-sm) !important;
    color: #f0f0f0 !important;
    font-family: var(--fbt-font) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 12px 40px 12px 14px !important;
    transition: var(--fbt-transition);
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    color-scheme: dark;
    cursor: pointer;
}

/* Placeholder text — visible but subtle */
.fbt-wrapper input::placeholder,
.fbt-wrapper textarea::placeholder {
    color: #555555 !important;
    -webkit-text-fill-color: #555555 !important;
    opacity: 1 !important;
}

/* Autofill overrides — prevents browser blue/yellow background */
.fbt-wrapper input:-webkit-autofill,
.fbt-wrapper input:-webkit-autofill:hover,
.fbt-wrapper input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
    -webkit-text-fill-color: #f0f0f0 !important;
    caret-color: #f0f0f0 !important;
    border: 1px solid var(--fbt-input-border) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Focus */
.fbt-wrapper input:focus,
.fbt-wrapper select:focus,
.fbt-wrapper textarea:focus {
    border-color: var(--fbt-gold) !important;
    box-shadow: 0 0 0 3px var(--fbt-gold-dim) !important;
    background: #151200 !important;
}

/* Error */
.fbt-wrapper input.fbt-error,
.fbt-wrapper select.fbt-error,
.fbt-wrapper textarea.fbt-error {
    border-color: var(--fbt-error) !important;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15) !important;
}

/* Select dropdown arrow — gold chevron */
.fbt-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F2B705' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-color: #111111 !important;
}

/* Select options */
.fbt-wrapper select option {
    background: #1e1e1e !important;
    color: #f0f0f0 !important;
}

/* Date picker icon — invert to show on dark */
.fbt-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.8);
    opacity: 0.7;
}

/* Textarea resize */
.fbt-wrapper textarea {
    resize: vertical;
    min-height: 110px !important;
    line-height: 1.6 !important;
}

/* -- Field Errors ------------------------------------------------------ */
.fbt-field-error {
    display: none;
    font-size: 12px;
    color: var(--fbt-error);
    font-weight: 500;
    padding-left: 2px;
}

.fbt-field-error.visible { display: block; }

/* -- Radio Buttons ----------------------------------------------------- */
.fbt-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.fbt-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--fbt-white);
    letter-spacing: 0.5px;
    text-transform: none;
    font-weight: 400;
    transition: color 0.2s;
    position: relative;
    min-height: 44px;
}

.fbt-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fbt-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--fbt-input-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fbt-transition);
    flex-shrink: 0;
    background: var(--fbt-input-bg);
}

.fbt-radio-label input[type="radio"]:checked + .fbt-radio-custom {
    border-color: var(--fbt-gold);
    box-shadow: 0 0 0 4px var(--fbt-gold-dim);
}

.fbt-radio-label input[type="radio"]:checked + .fbt-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--fbt-gold);
    border-radius: 50%;
    display: block;
}

.fbt-radio-label:hover .fbt-radio-custom { border-color: var(--fbt-gold); }

/* -- Vehicle Type (text input) - styles inherited from .fbt-field input ----- */

/* -- Helper Text ------------------------------------------------------- */
.fbt-helper-text {
    font-size: 13px;
    color: var(--fbt-muted);
    margin: 0 0 12px;
}

/* -- Submit Button ----------------------------------------------------- */
.fbt-submit-wrap {
    padding: 32px 24px 16px;
    text-align: center;
}

.fbt-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, #F2B705, #FFD23F, #ffe066, #FFD23F);
    background-size: 200% 200%;
    animation: fbt-shimmer 3s ease infinite;
    color: #0d0d0d;
    font-family: var(--fbt-font);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    padding: 18px 56px;
    cursor: pointer;
    transition: var(--fbt-transition);
    box-shadow: 0 4px 28px var(--fbt-gold-glow);
    min-width: 260px;
    position: relative;
    overflow: hidden;
}

.fbt-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s ease;
}

.fbt-submit-btn:hover::before { left: 140%; }

.fbt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 48px var(--fbt-gold-glow), 0 0 80px rgba(242,183,5,0.3);
}

.fbt-submit-btn:active { transform: translateY(0); }

.fbt-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@keyframes fbt-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fbt-btn-text,
.fbt-btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fbt-btn-icon { font-size: 10px; opacity: 0.7; }

/* Spinner */
.fbt-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: fbt-spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes fbt-spin { to { transform: rotate(360deg); } }

.fbt-disclaimer {
    font-size: 12px;
    color: #555555;
    margin-top: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* -- Banners ----------------------------------------------------------- */
.fbt-success-banner {
    margin: 20px 24px 0;
    background: linear-gradient(135deg, #0d1f0d, #0a180a);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: var(--fbt-radius);
    padding: 24px 28px;
    box-shadow: 0 0 24px rgba(76,175,80,0.08);
}

.fbt-success-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fbt-success-icon { font-size: 32px; }

.fbt-success-banner h3 { color: #4caf50; margin: 0 0 6px; font-size: 18px; }
.fbt-success-banner p  { color: #aaaaaa; margin: 0 0 6px; font-size: 14px; }

.fbt-app-num {
    color: var(--fbt-gold) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.fbt-error-banner {
    margin: 20px 24px 0;
    background: rgba(224,82,82,0.08);
    border: 1px solid rgba(224,82,82,0.3);
    border-radius: var(--fbt-radius);
    padding: 14px 20px;
    color: var(--fbt-error);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* -- Form Footer ------------------------------------------------------- */
.fbt-form-footer {
    text-align: center;
    padding: 20px;
    color: #e2e2e2;
    font-size: 12px;
    border-top: 1px solid #1f1800;
    margin-top: 32px;
}

.fbt-form-footer strong { color: var(--fbt-gold); }

/* -- Honeypot ---------------------------------------------------------- */
.fbt-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* -- Years of Experience toggle --------------------------------------- */
#fbt-years-exp-row {
    padding: 16px;
    background: rgba(242,183,5,0.06);
    border: 1px solid #2a2200;
    border-radius: var(--fbt-radius-sm);
    margin-top: 8px;
}

/* -- Scrollbar --------------------------------------------------------- */
.fbt-wrapper ::-webkit-scrollbar { width: 6px; }
.fbt-wrapper ::-webkit-scrollbar-track { background: var(--fbt-dark); }
.fbt-wrapper ::-webkit-scrollbar-thumb { background: var(--fbt-gold); border-radius: 3px; }

/* -- Tablet -------------------------------------------------------------- */
@media (max-width: 760px) {
    .fbt-wrapper     { border-radius: 0; border-left: none; border-right: none; }
    .fbt-card        { margin: 20px 16px 0; }
    .fbt-section-plain { margin: 20px 16px 0; }
}

/* -- Mobile ------------------------------------------------------------ */
@media (max-width: 480px) {
    .fbt-wrapper       { font-size: 14px; }
    .fbt-card          { margin: 16px 12px 0; border-radius: var(--fbt-radius-sm); }
    .fbt-section-plain { margin: 16px 12px 0; }
    .fbt-card-body     { padding: 18px 14px 14px; }
    .fbt-card-header   { padding: 14px 16px; gap: 10px; }
    .fbt-card-header h2 { font-size: 13px; letter-spacing: 1px; }
    .fbt-hero          { padding: 36px 18px 32px; }
    .fbt-logo-text     { font-size: 11px; letter-spacing: 2px; }
    .fbt-subheading    { font-size: 12px; letter-spacing: 2px; margin-bottom: 18px; }
    .fbt-field label   { font-size: 11px; letter-spacing: 1px; }
    .fbt-submit-btn    { min-width: 0; width: 100%; padding: 16px 24px; font-size: 14px; letter-spacing: 2px; }
    .fbt-submit-wrap   { padding: 24px 14px 12px; }
    .fbt-disclaimer    { font-size: 11px; padding: 0 4px; }
    .fbt-success-banner,
    .fbt-error-banner  { margin-left: 12px; margin-right: 12px; }
    .fbt-success-banner { padding: 18px 18px; }
    .fbt-success-inner { gap: 12px; }
    .fbt-form-footer   { padding: 16px; font-size: 11px; }
}

/* -- Small phones (≤360px) --------------------------------------------- */
@media (max-width: 360px) {
    .fbt-heading       { letter-spacing: 1px; }
    .fbt-card-header h2 { letter-spacing: 0.5px; }
    .fbt-radio-group   { gap: 14px; }
}

