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

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

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

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

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

.fbtc-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;
}

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

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

.fbtc-logo-icon { font-size: 20px; }

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

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

.fbtc-subheading {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fbtc-gold);
    margin: 0 0 20px;
    font-weight: 600;
    opacity: 0.85;
}

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

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

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

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

.fbtc-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(--fbtc-gold-dim);
}

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

.fbtc-card-icon { font-size: 18px; }

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

.fbtc-card-body { padding: 26px 24px 18px; }

/* -- Grid Rows --------------------------------------------------------- */
.fbtc-row { display: grid; gap: 18px; margin-bottom: 18px; }
.fbtc-cols-1 { grid-template-columns: 1fr; }
.fbtc-cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 600px) {
    .fbtc-cols-2 { grid-template-columns: 1fr; }
}

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

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

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

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

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

.fbtc-wrapper textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.fbtc-wrapper input::placeholder,
.fbtc-wrapper textarea::placeholder {
    color: #555555 !important;
    -webkit-text-fill-color: #555555 !important;
    opacity: 1 !important;
}

/* Autofill overrides */
.fbtc-wrapper input:-webkit-autofill,
.fbtc-wrapper input:-webkit-autofill:hover,
.fbtc-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(--fbtc-input-border) !important;
    transition: background-color 5000s ease-in-out 0s;
}

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

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

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

/* -- Submit Button ------------------------------------------------------ */
.fbtc-submit-wrap { padding: 30px 24px 14px; text-align: center; }

.fbtc-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: fbtc-shimmer 3s ease infinite;
    color: #0d0d0d;
    font-family: var(--fbtc-font);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    padding: 16px 48px;
    cursor: pointer;
    transition: var(--fbtc-transition);
    box-shadow: 0 4px 28px var(--fbtc-gold-glow);
    min-width: 230px;
    position: relative;
    overflow: hidden;
}

.fbtc-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;
}

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

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

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

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

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

.fbtc-btn-text,
.fbtc-btn-loading { display: flex; align-items: center; gap: 10px; }
.fbtc-btn-icon { font-size: 9px; opacity: 0.7; }

.fbtc-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #0d0d0d;
    border-radius: 50%;
    animation: fbtc-spin 0.7s linear infinite;
    display: inline-block;
}

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

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

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

.fbtc-success-inner { display: flex; align-items: flex-start; gap: 16px; }
.fbtc-success-icon { font-size: 30px; }
.fbtc-success-banner h3 { color: #4caf50; margin: 0 0 6px; font-size: 17px; }
.fbtc-success-banner p  { color: #aaaaaa; margin: 0 0 6px; font-size: 14px; }
.fbtc-ref-num { color: var(--fbtc-gold) !important; font-weight: 700 !important; font-size: 15px !important; }

.fbtc-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(--fbtc-radius);
    padding: 14px 20px;
    color: var(--fbtc-error);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* -- Form Footer --------------------------------------------------------- */
.fbtc-form-footer {
    text-align: center;
    padding: 18px;
    color: #444444;
    font-size: 12px;
    border-top: 1px solid #1f1800;
    margin-top: 28px;
}

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

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

/* -- Mobile --------------------------------------------------------------- */
@media (max-width: 480px) {
    .fbtc-card        { margin: 16px 12px 0; }
    .fbtc-card-body   { padding: 18px 16px 14px; }
    .fbtc-hero        { padding: 36px 20px 30px; }
    .fbtc-submit-btn  { min-width: 180px; padding: 14px 32px; }
    .fbtc-submit-wrap { padding: 22px 12px 10px; }
}
