:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --bg: #f5f8fc;
    --card: #ffffff;

    --text: #1f2937;
    --text-light: #64748b;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.08),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);
}

.tracking-loss-form-container {
    max-width:900px;
    margin: 0 auto;
    padding: 60px 24px;
}

.tracking-loss-card {
    background: var(--card);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.tracking-loss-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.tracking-loss-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.question-label {
    display: block;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 18px;
    margin-bottom: 10px;

    background: #fafcff;
    border: 1px solid var(--border);
    border-radius: 14px;

    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--primary);
    background: #f8fbff;
    transform: translateY(-1px);
}

.radio-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.radio-option span {
    color: var(--text);
    font-weight: 500;
}

.text-input {
    width: 100%;
    padding: 16px 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    font-size: 15px;
    color: var(--text);

    transition: all 0.2s ease;
    background: white;
}

.text-input::placeholder {
    color: #94a3b8;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-wrapper {
    position: relative;
}

.text-input,
.input-wrapper {
    width: 100%;
}

.currency-symbol {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-weight: 600;
}

.input-wrapper .text-input {
    padding-left: 42px;
}

.submit-button {
    width: 100%;
    border: none;

    padding: 18px;
    border-radius: 14px;

    background: var(--primary);
    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.2s ease;
    grid-column: 1 / -1;
}

.submit-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px; /* row gap + column gap */
    align-items: start;
}

.form-group {
    margin-bottom: 0; /* grid handles spacing now */
}

.form-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    align-items: start;
}

/* LIVE PANEL */
.live-panel {
    position: sticky;
    top: 40px;
}

.live-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}

.live-card h3 {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.risk {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 12px;
}

.insight {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.metric {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.metric-label {
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
}



@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .live-panel {
        position: relative;
        top: auto;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .tracking-loss-card {
        padding: 28px;
    }

    .tracking-loss-title {
        font-size: 1.7rem;
    }
}