/* Fluxcore Industry Audit Suite — Frontend CSS v3 (polished UI) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.fias-widget-wrap { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }

.fias-form-card {
    background: #0D2426;
    background-image: radial-gradient(circle at 0% 0%, rgba(0,201,177,0.06), transparent 50%);
    border: 1px solid rgba(0,201,177,0.16);
    border-radius: 24px;
    padding: 44px 40px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}

.fias-hidden { display: none !important; }

/* Once the report is generated, let it break out of the dark, narrow
   lead-capture card and go full width — the report has its own white
   card styling and shouldn't be boxed in. Uses !important because
   Elementor writes its own background/padding/max-width rules on
   .fias-form-card at equal specificity. */
.fias-form-card.fias-report-active {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ── Widget logo (image + alignment/size set in Elementor "Widget Logo" style tab) ── */
.fias-widget-logo { text-align: center; margin-bottom: 22px; }
.fias-widget-logo img { height: 44px; width: auto; display: inline-block; }

/* ── Step indicator (pill-style progress) ── */
.fias-step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 0;
}
.fias-step-dot {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.35);
    flex-shrink: 0; position: relative; z-index: 1;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    background: #0D2426;
}
.fias-step-dot.active {
    border-color: #00C9B1; color: #00C9B1;
    box-shadow: 0 0 0 5px rgba(0,201,177,0.14);
    transform: scale(1.06);
}
.fias-step-dot.done {
    background: #00C9B1; border-color: #00C9B1; color: #001A1C;
}
.fias-step-dot.done::after {
    content: '✓';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900;
}
.fias-step-dot.done span { display: none; }
.fias-step-line {
    flex: 1; height: 2px; min-width: 24px;
    background: rgba(255,255,255,0.08);
    transition: background 0.4s ease 0.1s;
    margin: 0 -1px;
}
.fias-step-line.done { background: #00C9B1; }

/* ── Form panels ── */
.fias-step-panel { animation: fias-fade-in 0.35s ease; }
@keyframes fias-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Title & desc ── */
.fias-step-eyebrow {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #00C9B1; margin: 0 0 10px;
    display: flex; align-items: center; gap: 6px;
}
.fias-form-title {
    font-size: 27px; font-weight: 800;
    letter-spacing: -0.04em; color: #F7FAFA;
    margin: 0 0 10px; line-height: 1.18;
}
.fias-form-desc {
    color: #8FA8AA; font-size: 14.5px;
    line-height: 1.65; margin: 0 0 28px;
    max-width: 480px;
}

/* ── Fields grid ── */
.fias-fields { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 4px; }
.fias-field-group { display: flex; flex-direction: column; }
.fias-half { flex: 1 1 calc(50% - 8px); min-width: 200px; }
.fias-full { flex: 1 1 100%; }

.fias-label {
    font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #A8BCBD; margin-bottom: 8px; display: block;
}
.fias-optional { opacity: 0.5; font-weight: 400; text-transform: none; letter-spacing: 0; }

.fias-field {
    background: rgba(255,255,255,0.035);
    border: 1.5px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 14px 16px;
    color: #F0F4F4; font-size: 14.5px;
    font-family: inherit; outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    width: 100%; box-sizing: border-box;
    -webkit-appearance: none; appearance: none;
}
.fias-field:hover { border-color: rgba(255,255,255,0.18); }
.fias-field:focus {
    border-color: #00C9B1;
    background: rgba(0,201,177,0.04);
    box-shadow: 0 0 0 3px rgba(0,201,177,0.12);
}
.fias-field::placeholder { color: #54696B; }
.fias-field option { background: #0D2426; color: #F0F4F4; }

/* Select arrow */
select.fias-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238FA8AA' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ── Buttons ── */
.fias-btn-row {
    display: flex; gap: 12px; align-items: stretch;
    margin-top: 28px;
}
.fias-submit-btn {
    flex: 1;
    background: linear-gradient(135deg, #00D9BF, #00B89F);
    color: #001A1C;
    border: none; border-radius: 13px;
    padding: 16px 26px;
    font-size: 15px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    letter-spacing: -0.01em;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    display: block; width: 100%;
    margin-top: 28px;
    box-shadow: 0 8px 24px -8px rgba(0,201,177,0.45);
}
.fias-btn-row .fias-submit-btn { margin-top: 0; }
.fias-submit-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 28px -6px rgba(0,201,177,0.55); }
.fias-submit-btn:active { transform: translateY(0); }
.fias-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.fias-back-btn {
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 13px; padding: 16px 22px;
    color: #A8BCBD; font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    flex: 0 0 auto;
    transition: all 0.2s;
    margin-top: 0;
}
.fias-back-btn:hover { border-color: rgba(255,255,255,0.22); color: #F0F4F4; background: rgba(255,255,255,0.05); }

.fias-form-note {
    text-align: center; color: #5A7173;
    font-size: 12px; margin: 16px 0 0;
    letter-spacing: 0.01em;
}

/* ── Error ── */
.fias-error-msg {
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 12px; padding: 13px 16px;
    color: #FF8B5E; font-size: 13.5px;
    margin-bottom: 18px; line-height: 1.5;
    display: flex; align-items: center; gap: 8px;
}
.fias-error-msg::before { content: '⚠'; font-size: 14px; }

/* ── Loading ── */
.fias-loading-wrap { text-align: center; padding: 64px 0 56px; }
.fias-spinner {
    width: 54px; height: 54px; border-radius: 50%;
    border: 3px solid rgba(0,201,177,0.12);
    border-top: 3px solid #00C9B1;
    animation: fias-spin 0.85s linear infinite;
    margin: 0 auto 24px;
}
@keyframes fias-spin { to { transform: rotate(360deg); } }
.fias-loading-title { color: #F0F4F4; font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.fias-loading-sub   { color: #8FA8AA; font-size: 13.5px; margin: 0; }
.fias-loading-bar {
    width: 260px; height: 5px; background: rgba(255,255,255,0.08);
    border-radius: 99px; margin: 22px auto 0; overflow: hidden;
}
.fias-loading-bar-fill {
    width: 40%; height: 100%; background: #00C9B1; border-radius: 99px;
    animation: fias-loading-slide 1.4s ease-in-out infinite;
}
.fias-loading-bar-fill.fias-determinate {
    animation: none;
    transition: width 0.4s ease;
}
@keyframes fias-loading-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ── Download bar ── */
.fias-download-bar {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 24px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    align-items: center;
}
.fias-dl-btn {
    background: rgba(0,201,177,0.1);
    border: 1px solid rgba(0,201,177,0.25);
    border-radius: 11px; padding: 11px 20px;
    color: #00C9B1; font-size: 13.5px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.fias-dl-btn:hover { background: rgba(0,201,177,0.18); transform: translateY(-1px); }
.fias-dl-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.fias-restart-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 11px; padding: 11px 20px;
    color: #8FA8AA; font-size: 13.5px; font-weight: 500;
    font-family: inherit; cursor: pointer;
    margin-left: auto; transition: all 0.2s;
}
.fias-restart-btn:hover { color: #F0F4F4; border-color: rgba(255,255,255,0.2); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .fias-form-card { padding: 30px 20px; border-radius: 18px; }
    .fias-form-title { font-size: 21px; }
    .fias-form-desc { font-size: 13.5px; }
    .fias-half { flex: 1 1 100%; }
    .fias-step-indicator { margin-bottom: 28px; }
    .fias-download-bar { flex-direction: column; align-items: stretch; }
    .fias-dl-btn { justify-content: center; }
    .fias-restart-btn { margin-left: 0; text-align: center; }
    .fias-btn-row { flex-direction: column; }
    .fias-back-btn { order: 2; }
}
