/* Global Reset and Modern Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Main Container Panel */
.pane, form {
    background: #ffffff;
    max-width: 650px;
    width: 100%;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    box-sizing: border-box;
}

/* Headings */
h1 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 24px;
    font-weight: 700;
}

/* Question Blocks */
.question-block {
    margin-bottom: 32px;
}

.question-block p {
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: #334155;
}

/* Hide native radio buttons to style custom numeric buttons */
.nps-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Container for the 0-10 scale */
.nps-options {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

/* Styling the number boxes */
.nps-options label {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    user-select: none;
}

/* Hover and active states */
.nps-options label:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.nps-options input[type="radio"]:checked + label {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Left and right text alignment under the scale */
.nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    padding: 0 4px;
}

/* Secondary question blocks or conditional inputs */
.conditional-block {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

/* Primary Action Buttons */
button, input[type="submit"] {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: #1d4ed8;
}

/* Mobile Responsiveness */
@media (max-width: 500px) {
    body {
        padding: 12px;
    }

    .pane, form {
        padding: 20px;
    }

    .nps-options {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Splits numbers into a tidy wrap grid on tight screens */
    .nps-options label {
        flex: calc(20% - 4px);
        min-width: 40px;
        padding: 10px 0;
        font-size: 0.9rem;
    }
}
