/* ═══════════════════════════════════════════
   GW Briefing — Frontend Styles
   ═══════════════════════════════════════════ */

/* Reset scoping */
.gwb-root *, .gwb-root *::before, .gwb-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gwb-root {
    font-family: 'DM Sans', -apple-system, sans-serif;
    display: flex;
    min-height: 80vh;
    background: #f4f1eb;
    color: #000;
    position: relative;
    line-height: 1.5;
    font-size: 14px;
}

/* ─── Sidebar ─── */
.gwb-sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, #000 0%, #111 100%);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.gwb-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.gwb-brand-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

.gwb-brand-subtitle {
    text-align: center;
    color: #FFA500;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.gwb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.gwb-root .gwb-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 20px !important;
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-family: 'DM Sans', sans-serif !important;
    text-align: left !important;
    color: rgba(255,255,255,.55) !important;
    transition: all .2s !important;
    letter-spacing: .2px;
    border-left: 3px solid transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.gwb-root .gwb-nav-item:hover {
    background: rgba(255,255,255,.05) !important;
    color: rgba(255,255,255,.8) !important;
}

.gwb-root .gwb-nav-item.active,
.gwb-root .gwb-nav-item.active:hover {
    background: rgba(255,165,0,.12) !important;
    color: #FFA500 !important;
    font-weight: 600 !important;
    border-left-color: #FFA500 !important;
}

.gwb-nav-item.completed::after {
    content: '✓';
    margin-left: auto;
    font-size: 11px;
    opacity: .5;
}

.gwb-nav-icon {
    margin-right: 10px;
    font-size: 15px;
}

.gwb-sidebar-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.gwb-progress-label {
    color: rgba(255,255,255,.5);
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.gwb-progress-bar {
    height: 4px;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    overflow: hidden;
}

.gwb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFA500, #E89400);
    border-radius: 4px;
    transition: width .4s ease;
}

/* ─── Mobile toggle ─── */
.gwb-root .gwb-mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #fff !important;
    background: #000 !important;
    background-image: none !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

/* ─── Main ─── */
.gwb-main {
    flex: 1;
    overflow-y: auto;
    min-height: 100vh;
}

.gwb-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.gwb-step-header {
    margin-bottom: 28px;
}

.gwb-step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #E89400;
    margin-bottom: 8px;
}

.gwb-step-title {
    font-family: 'Krona One', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000;
    line-height: 1.3;
}

/* ─── Form card ─── */
.gwb-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
}

.gwb-step {
    display: none;
}

.gwb-step.active {
    display: block;
    animation: gwbFadeIn .3s ease;
}

@keyframes gwbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gwb-section-title {
    font-family: 'Krona One', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFA500;
    display: inline-block;
}

.gwb-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 28px 0;
}

/* ─── Fields ─── */
.gwb-field {
    margin-bottom: 18px;
}

.gwb-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    letter-spacing: .2px;
}

.gwb-req {
    color: #c9534a;
    margin-left: 2px;
}

.gwb-hint {
    display: block;
    font-size: 12px;
    color: rgba(0,0,0,.45);
    margin-bottom: 6px;
    line-height: 1.4;
}

.gwb-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    border: 1.5px solid rgba(0,0,0,.12);
    border-radius: 10px;
    background: rgba(244,241,235,.5);
    color: #000;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.gwb-input:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255,165,0,.15);
}

.gwb-textarea {
    min-height: 80px;
    resize: vertical;
}

/* ─── Rows ─── */
.gwb-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gwb-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ─── Chips / Check group ─── */
.gwb-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gwb-root .gwb-chip {
    padding: 7px 14px !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(0,0,0,.15) !important;
    background: rgba(255,255,255,.55) !important;
    background-image: none !important;
    font-size: 13px !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #000 !important;
    cursor: pointer !important;
    transition: all .2s !important;
    white-space: nowrap;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.gwb-root .gwb-chip:hover {
    border-color: rgba(0,0,0,.3) !important;
}

.gwb-root .gwb-chip.active,
.gwb-root .gwb-chip.active:hover {
    background: #000 !important;
    color: #FFA500 !important;
    border-color: #FFA500 !important;
    font-weight: 600 !important;
}

/* ─── Radio ─── */
.gwb-radio-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gwb-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
    color: #000;
}

.gwb-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
}

.gwb-radio-label.selected .gwb-radio-circle {
    border-color: #FFA500;
    background: #000;
}

.gwb-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: background .2s;
}

.gwb-radio-label.selected .gwb-radio-dot {
    background: #FFA500;
}

/* ─── File upload / Dropzone ─── */
.gwb-dropzone {
    border: 2px dashed rgba(0,0,0,.15);
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s;
    font-size: 13px;
    background: rgba(244,241,235,.4);
}

.gwb-dropzone:hover {
    border-color: #FFA500;
}

.gwb-dropzone-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.gwb-dropzone-text {
    color: rgba(0,0,0,.45);
}

.gwb-dropzone.has-files .gwb-dropzone-text {
    color: #000;
    font-weight: 500;
}

/* ─── Conditional fields ─── */
.gwb-conditional {
    display: none;
}

.gwb-conditional.visible {
    display: block;
}

/* ─── Nav buttons ─── */
.gwb-nav-buttons {
    display: flex;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

.gwb-root .gwb-nav-buttons .gwb-btn-primary,
.gwb-root .gwb-nav-buttons .gwb-btn-primary:visited,
.gwb-root .gwb-nav-buttons .gwb-btn-primary:link {
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #000 !important;
    background: #FFA500 !important;
    background-image: none !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all .2s !important;
    letter-spacing: .3px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.4 !important;
}

.gwb-root .gwb-nav-buttons .gwb-btn-primary:hover,
.gwb-root .gwb-nav-buttons .gwb-btn-primary:focus,
.gwb-root .gwb-nav-buttons .gwb-btn-primary:active {
    background: #E89400 !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.gwb-root .gwb-nav-buttons .gwb-btn-submit,
.gwb-root .gwb-nav-buttons .gwb-btn-submit:visited,
.gwb-root .gwb-nav-buttons .gwb-btn-submit:link {
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #fff !important;
    background: #000 !important;
    background-image: none !important;
    border: 2px solid #FFA500 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all .2s !important;
    letter-spacing: .3px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.4 !important;
}

.gwb-root .gwb-nav-buttons .gwb-btn-submit:hover,
.gwb-root .gwb-nav-buttons .gwb-btn-submit:focus,
.gwb-root .gwb-nav-buttons .gwb-btn-submit:active {
    background: #FFA500 !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.gwb-root .gwb-nav-buttons .gwb-btn-secondary,
.gwb-root .gwb-nav-buttons .gwb-btn-secondary:visited,
.gwb-root .gwb-nav-buttons .gwb-btn-secondary:link {
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #000 !important;
    background: transparent !important;
    background-image: none !important;
    border: 1.5px solid rgba(0,0,0,.2) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all .2s !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.4 !important;
}

.gwb-root .gwb-nav-buttons .gwb-btn-secondary:hover,
.gwb-root .gwb-nav-buttons .gwb-btn-secondary:focus,
.gwb-root .gwb-nav-buttons .gwb-btn-secondary:active {
    border-color: #FFA500 !important;
    color: #FFA500 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Also override any generic button styles from themes */
.gwb-root button {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* ─── Success overlay ─── */
.gwb-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244,241,235,.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gwbFadeIn .4s ease;
}

.gwb-success-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    text-align: center;
}

/* ─── Loading overlay ─── */
.gwb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.7);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.gwb-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #FFA500;
    border-radius: 50%;
    animation: gwbSpin .8s linear infinite;
    margin-bottom: 16px;
}

@keyframes gwbSpin {
    to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .gwb-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gwb-root {
        flex-direction: column;
    }

    .gwb-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .gwb-sidebar.open {
        display: flex;
        transform: translateX(0);
    }

    .gwb-mobile-toggle {
        display: block;
    }

    .gwb-content {
        padding: 60px 16px 40px;
    }

    .gwb-row-2, .gwb-row-3 {
        grid-template-columns: 1fr;
    }

    .gwb-step-title {
        font-size: 20px;
    }

    .gwb-form-card {
        padding: 24px 18px;
    }
}

/* ─── Scrollbar ─── */
.gwb-nav::-webkit-scrollbar {
    width: 4px;
}
.gwb-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 2px;
}
