:root {
    --primary-color: #E02440;
    --primary-hover: #c01b33;
    --primary-light: #fbe9ec;
    --primary-gradient: linear-gradient(135deg, #ff6b81 0%, #E02440 100%);
    --bg-color: #F3F4F6;
    --card-bg: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 { color: var(--text-main); font-weight: 600; }
h1 { font-size: 1.5rem; text-align: center; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary-color); }
p { color: var(--text-muted); }
.subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; text-align: center; }

/* Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #E22440;
    position: relative;
    overflow-x: hidden;
}

/* Dot Pattern Overlay disabled for clean background */
.app-container::before {
    display: none;
}

.wavy-header {
    background: transparent;
    padding: 2rem 1.5rem 1rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
}

.wavy-header::after {
    display: none;
}

.app-header {
    margin-bottom: 2rem;
    text-align: center;
}

.app-header h1, .wavy-header h1 {
    color: #FFFFFF;
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.app-header p, .wavy-header p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 500;
}

.wizard-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    flex-grow: 1;
    margin: 0 1rem 2rem 1rem;
    z-index: 10;
    position: relative;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 480px;
}

.app-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Progress Bar */
/* Progress Dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.progress-dots .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.progress-dots .dot.active {
    width: 48px;
    background-color: var(--primary-color);
    border-radius: 50px; /* Pill shape */
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

/* Sub-steps (Sections inside Step 4) */
.section-block {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section-block.active {
    display: block;
}

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

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

label.required::after {
    content: '*';
    color: var(--primary-color);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    background-color: var(--bg-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: #fff;
}

/* Custom Radios & Checkboxes */
.radio-group { display: flex; gap: 1rem; }
.row-group { flex-direction: row; }
.column-group { flex-direction: column; gap: 0.75rem; }

.radio-card {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    background: #fff;
}

.card-content .icon { font-size: 2rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.card-content .title { font-weight: 500; text-align: center; }

.radio-card input:checked + .card-content {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.radio-item input, .checkbox-item input {
    margin-right: 0.75rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary-color);
}

.other-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.inline-input {
    width: auto;
    flex-grow: 1;
}

/* Evaluatees Grid */
.evaluatees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.evaluatee-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}

.evaluatee-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.evaluatee-card.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.evaluatee-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    background-color: var(--border-color);
}

.evaluatee-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.evaluatee-pos {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Rating Table / Mobile List */
.section-block {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.question-block {
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.question-text {
    margin-bottom: 1rem;
    font-weight: 500;
}

.rating-group {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 400px;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.rating-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    background: #fff;
}

.rating-item input[type="radio"] { display: none; }

.rating-item input:checked + .rating-circle {
    color: #fff;
    transform: scale(1.1);
}

/* Rating Color Scale: Red to Green */
.rating-item:nth-child(1) .rating-circle { border-color: #EF4444; color: #EF4444; }
.rating-item:nth-child(2) .rating-circle { border-color: #F97316; color: #F97316; }
.rating-item:nth-child(3) .rating-circle { border-color: #EAB308; color: #EAB308; }
.rating-item:nth-child(4) .rating-circle { border-color: #84CC16; color: #84CC16; }
.rating-item:nth-child(5) .rating-circle { border-color: #22C55E; color: #22C55E; }

/* Rating Checked States */
.rating-item:nth-child(1) input:checked + .rating-circle { background-color: #EF4444; border-color: #EF4444; }
.rating-item:nth-child(2) input:checked + .rating-circle { background-color: #F97316; border-color: #F97316; }
.rating-item:nth-child(3) input:checked + .rating-circle { background-color: #EAB308; border-color: #EAB308; }
.rating-item:nth-child(4) input:checked + .rating-circle { background-color: #84CC16; border-color: #84CC16; }
.rating-item:nth-child(5) input:checked + .rating-circle { background-color: #22C55E; border-color: #22C55E; }

.rating-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    text-align: center;
}

/* Buttons */
.form-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
}
.form-actions.space-between {
    justify-content: space-between;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #6b0b14;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover:not(:disabled) {
    background: #47060c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 0.5rem;
    font-weight: 400;
}

.btn-secondary:hover:not(:disabled) {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-main);
}

/* Success Step */
.success-step {
    text-align: center;
    padding: 3rem 1rem;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Responsive Styles for Mobile & Tablet (Public Evaluation Pages Only)
   Does not affect Admin sections
   ========================================================================== */

/* --- Mobile Small & Standard (max-width: 600px) --- */
@media (max-width: 600px) {
    .app-container {
        padding: 0;
        min-height: 100vh;
        background-color: #E22440;
    }

    /* Wavy Header - Compact, white and clear on mobile */
    .wavy-header {
        padding: 1.25rem 1rem 0.5rem 1rem;
        max-width: 100%;
        min-height: auto;
    }

    .wavy-header h1 {
        display: block !important;
        font-size: 1.35rem;
        line-height: 1.35;
        margin-bottom: 0.25rem;
        font-weight: 700;
        color: #FFFFFF !important;
    }

    .wavy-header p {
        display: block !important;
        font-size: 0.85rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.92) !important;
    }

    /* Wizard Container on Mobile */
    .wizard-container {
        border-radius: 18px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        padding: 1.35rem 1rem;
        margin: 0.5rem auto 1.5rem auto;
        width: calc(100% - 1.25rem);
        max-width: 100%;
    }

    .wizard-step h2 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
        line-height: 1.35;
    }

    .wizard-step .subtitle {
        font-size: 0.82rem;
        margin-bottom: 1.15rem;
        line-height: 1.45;
    }

    /* Step 1: User Type Radio Cards */
    .row-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-content {
        padding: 1rem 1.15rem;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0.85rem;
        border-radius: 12px;
        min-height: 56px;
    }

    .card-content .icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }

    .card-content .title {
        font-size: 1rem;
        text-align: left;
    }

    /* Step 1 in evaluate_support.php: Radio items */
    .app-container .radio-item {
        padding: 0.75rem 0.85rem;
        border: 1.5px solid var(--border-color);
        border-radius: 12px;
        margin-bottom: 0.5rem;
        background: #fff;
        transition: var(--transition);
        font-size: 0.92rem;
        min-height: 48px;
    }

    .app-container .radio-item input {
        margin-right: 0.65rem;
        width: 1.15rem;
        height: 1.15rem;
    }

    /* Step 2: Form controls and inline text input */
    .app-container .form-control {
        font-size: 16px; /* Prevents auto-zoom in iOS Safari */
        padding: 0.75rem 0.85rem;
        border-radius: 10px;
        min-height: 46px;
    }

    .other-input-wrap {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .other-input-wrap .inline-input {
        width: 100% !important;
        margin-top: 0.25rem;
    }

    /* Step 2 Support Staff Cards in evaluate_support.php */
    #staff-cards-container {
        gap: 0.75rem !important;
    }

    .staff-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0.85rem 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 0.5rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0.85rem !important;
    }

    .staff-card img {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }

    .staff-card div {
        flex: 1 !important;
        white-space: normal !important;
        overflow: visible !important;
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
        text-align: left !important;
    }

    /* Step 3: Evaluatees Grid in evaluate.php */
    .evaluatees-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-top: 1rem;
    }

    .evaluatee-card {
        padding: 0.75rem 0.95rem;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.85rem;
    }

    .evaluatee-img {
        width: 52px;
        height: 52px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .evaluatee-name {
        font-size: 0.95rem !important;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.35;
        word-break: break-word;
        text-align: left;
    }

    .evaluatee-pos {
        font-size: 0.8rem;
        line-height: 1.25;
        text-align: left;
    }

    /* Step 4 in evaluate.php: Satisfaction Rating Questions */
    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-left: 8px;
        border-left-width: 3px;
    }

    .question-block {
        padding: 0.85rem 0.75rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .question-text {
        font-size: 0.92rem;
        line-height: 1.45;
        margin-bottom: 0.85rem;
    }

    .rating-group {
        display: flex;
        justify-content: space-between;
        gap: 0.2rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .rating-item {
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    .rating-circle {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        border-width: 2px;
    }

    .rating-label {
        display: block !important;
        font-size: 0.65rem;
        color: var(--text-muted);
        text-align: center;
        line-height: 1.15;
        height: 1.2rem;
        margin-top: 0.35rem;
    }

    /* Step 3 in evaluate_support.php: Google Forms Style Matrix */
    #step-3 {
        margin: -1.35rem -1rem !important;
        padding: 1.25rem 0.65rem !important;
        border-radius: 14px !important;
        min-height: auto !important;
    }

    .gform-card {
        padding: 1.1rem 0.85rem;
        border-radius: 12px;
        margin-bottom: 0.85rem;
        max-width: 100%;
    }

    .gform-header-card h2 {
        font-size: 1.3rem;
    }

    .gform-section-title {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }

    .rating-options {
        display: flex !important;
        justify-content: space-between !important;
        max-width: 100% !important;
        margin: 1rem auto 0 auto !important;
        gap: 0.15rem !important;
    }

    .rating-options > div {
        width: auto !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        gap: 0.35rem !important;
    }

    .matrix-circle-radio .circle-content {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.05rem !important;
    }

    /* Step 5: Suggestions in evaluate.php */
    .suggestion-pills {
        padding: 0.85rem !important;
        border-radius: 12px !important;
    }

    .suggestion-pills span {
        display: block !important;
        width: auto !important;
        margin-bottom: 0.45rem !important;
        font-weight: 600 !important;
    }

    .btn-pill {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 0.75rem;
        font-size: 0.82rem;
        min-height: 36px;
        border-radius: 9999px;
        margin-right: 0.3rem;
        margin-bottom: 0.4rem;
        cursor: pointer;
    }

    /* Wizard Buttons & Actions */
    .app-container .form-actions {
        margin-top: 1.5rem;
        gap: 0.65rem;
    }

    .app-container .btn {
        min-height: 46px;
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 9999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-container .btn-secondary {
        padding: 0.65rem 0.85rem;
        font-size: 0.92rem;
    }

    /* Progress Dots */
    .progress-dots {
        margin-top: 1.5rem;
        margin-bottom: 0.25rem;
        gap: 8px;
    }

    .progress-dots .dot {
        width: 12px;
        height: 12px;
    }

    /* Success Step */
    .success-step {
        padding: 2.5rem 1rem !important;
    }

    .success-icon {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
}

/* --- Tablet Portrait (min-width: 601px) and (max-width: 899px) --- */
@media (min-width: 601px) and (max-width: 899px) {
    .app-container {
        padding: 1rem 0;
    }

    .wavy-header {
        max-width: 680px;
        padding: 2rem 1.5rem 1rem 1.5rem;
    }

    .wavy-header h1 {
        font-size: 1.75rem;
    }

    .wavy-header p {
        font-size: 1rem;
    }

    .wizard-container {
        max-width: 680px;
        width: 92%;
        margin: 0.75rem auto 2.5rem auto;
        padding: 2.25rem 2rem;
        border-radius: 20px;
    }

    .evaluatees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }

    .evaluatee-card {
        padding: 1.25rem 1rem;
    }

    .evaluatee-img {
        width: 80px;
        height: 80px;
    }

    .rating-group {
        max-width: 520px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .rating-circle {
        width: 54px;
        height: 54px;
        font-size: 1.35rem;
    }

    .rating-label {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .staff-card {
        flex: 1 1 calc(50% - 0.75rem) !important;
        max-width: calc(50% - 0.375rem) !important;
        min-width: 180px !important;
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    .staff-card img {
        width: 85px !important;
        height: 85px !important;
    }

    #step-3 {
        margin: -2.25rem -2rem !important;
        padding: 2rem 1.5rem !important;
        border-radius: 18px !important;
    }

    .gform-card {
        max-width: 100%;
        padding: 1.75rem 1.5rem;
    }

    .rating-options {
        max-width: 500px !important;
        margin: 1.25rem auto 0 auto !important;
    }

    .matrix-circle-radio .circle-content {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.25rem !important;
    }

    .app-container .btn {
        padding: 0.75rem 1.85rem;
        font-size: 1.05rem;
        min-height: 48px;
    }
}

/* --- Tablet Landscape / Kiosk Mode (min-width: 900px) --- */
@media (min-width: 900px) {
    .wavy-header, .wizard-container {
        max-width: 880px;
    }

    .wizard-container {
        padding: 2.75rem 3.5rem;
        margin: 1.5rem auto 3rem auto;
        border-radius: 24px;
    }

    .wavy-header h1 {
        font-size: 2.1rem;
    }

    .wavy-header p {
        font-size: 1.15rem;
    }

    .rating-group {
        max-width: 620px;
        margin: 0 auto;
        gap: 1.25rem;
    }

    .rating-circle {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .rating-label {
        font-size: 0.95rem;
        margin-top: 0.65rem;
    }

    .evaluatees-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .evaluatee-img {
        width: 100px;
        height: 100px;
    }

    .evaluatee-name {
        font-size: 1.2rem;
    }

    .evaluatee-pos {
        font-size: 0.95rem;
    }

    .app-container .btn {
        padding: 0.85rem 2.25rem;
        font-size: 1.1rem;
        min-height: 50px;
    }

    .question-text {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.75rem;
    }

    .app-container label {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .app-container .form-control {
        font-size: 1.05rem;
        padding: 0.85rem 1.15rem;
    }

    .card-content {
        padding: 1.75rem;
    }

    .card-content .icon {
        font-size: 2.8rem;
    }

    .card-content .title {
        font-size: 1.15rem;
    }

    #step-3 {
        margin: -2.75rem -3.5rem !important;
        padding: 2.5rem 2rem !important;
        border-radius: 20px !important;
    }

    .gform-card {
        max-width: 100%;
        padding: 2rem 2.5rem;
    }

    .rating-options {
        max-width: 580px !important;
    }

    .matrix-circle-radio .circle-content {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.35rem !important;
    }

    .matrix-table th {
        font-size: 1.05rem;
    }

    .matrix-table td:first-child {
        font-size: 1.05rem;
    }
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-main);
}

/* Print Styles */
@media print {
    .sidebar, .wavy-header, .btn, .btn-primary, .btn-secondary, .btn-back, .modal-overlay, .header-actions, .no-print, .filter-bar {
        display: none !important;
    }
    .admin-layout {
        display: block !important;
    }
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }
    body {
        background: #fff !important;
    }
    .data-table, .section-box {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .section-box {
        page-break-inside: avoid;
    }
    @page { margin: 1cm; }
}

 / *   S u g g e s t i o n   P i l l s   * / 
 . b t n - p i l l   { 
         b a c k g r o u n d :   # f f f f f f ; 
         b o r d e r :   1 p x   s o l i d   # d 1 d 5 d b ; 
         b o r d e r - r a d i u s :   9 9 9 9 p x ; 
         p a d d i n g :   0 . 3 5 r e m   0 . 8 5 r e m ; 
         f o n t - s i z e :   0 . 8 5 r e m ; 
         f o n t - f a m i l y :   i n h e r i t ; 
         c o l o r :   # 4 b 5 5 6 3 ; 
         c u r s o r :   p o i n t e r ; 
         m a r g i n - r i g h t :   0 . 3 5 r e m ; 
         m a r g i n - b o t t o m :   0 . 3 5 r e m ; 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
 } 
 . b t n - p i l l : h o v e r   { 
         b a c k g r o u n d :   # f 3 f 4 f 6 ; 
         b o r d e r - c o l o r :   # 9 c a 3 a f ; 
         c o l o r :   # 1 1 1 8 2 7 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
 } 
 . b t n - p i l l : a c t i v e   { 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
  
 /* --- Google Forms Style Matrix --- */
.gform-container {
    background: #fdf2f2;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gform-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    width: 100%;
    max-width: 640px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
}

.gform-header-card {
    border-top: 10px solid #d0203a;
    padding-top: 2rem;
}
.gform-header-card h2 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.gform-header-card p {
    color: #555;
    font-size: 0.95rem;
}

.gform-section-card {
    border-top: 1px solid #e0e0e0;
}
.gform-section-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 1rem;
}
.gform-section-title .req {
    color: #d93025;
}

.matrix-container {
    width: 100%;
    overflow-x: auto;
}
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
}
.matrix-table th {
    font-weight: normal;
    color: #70757a;
    padding: 1rem 0.5rem;
}
.matrix-table .matrix-row {
    background: #f9f9f9;
    border-bottom: 4px solid #fff;
}
.matrix-table .matrix-row:hover {
    background: #f1f3f4;
}
.matrix-table td {
    padding: 1rem 0.5rem;
}
.matrix-table td:first-child {
    text-align: left;
    color: #202124;
    padding-left: 1rem;
    width: 40%;
}

.matrix-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d0203a;
}

.gform-text-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #dadce0;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #202124;
    background: transparent;
    transition: border-bottom-color 0.2s;
    outline: none;
    resize: none;
}
.gform-text-input:focus {
    border-bottom: 2px solid #d0203a;
    padding-bottom: calc(0.5rem - 1px);
}
/* --- Score Circle Styling for Matrix Table --- */
.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    margin: 0 auto;
    background: #fff;
    border: 2px solid;
}
.score-5 { border-color: #22c55e; color: #22c55e; }
.score-4 { border-color: #84cc16; color: #84cc16; }
.score-3 { border-color: #eab308; color: #eab308; }
.score-2 { border-color: #f97316; color: #f97316; }
.score-1 { border-color: #ef4444; color: #ef4444; }

/* Hide default table header styling that might interfere */
.matrix-table th {
    padding: 0.5rem;
    vertical-align: middle;
}
/* --- Custom Matrix Circle Radios --- */
.matrix-circle-radio {
    display: inline-block;
    cursor: pointer;
    margin: 0;
}
.matrix-circle-radio input {
    display: none;
}
.matrix-circle-radio .circle-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ccc;
    font-weight: bold;
    color: #999;
    background: #fff;
    transition: all 0.2s ease-in-out;
    margin: 0 auto;
}

/* Base Colors for each value (border and text) */
.matrix-circle-radio.val-5 .circle-content { border-color: #22c55e; color: #22c55e; }
.matrix-circle-radio.val-4 .circle-content { border-color: #84cc16; color: #84cc16; }
.matrix-circle-radio.val-3 .circle-content { border-color: #eab308; color: #eab308; }
.matrix-circle-radio.val-2 .circle-content { border-color: #f97316; color: #f97316; }
.matrix-circle-radio.val-1 .circle-content { border-color: #ef4444; color: #ef4444; }

/* Checked State (Filled background) */
.matrix-circle-radio input:checked + .circle-content {
    color: white !important;
}
.matrix-circle-radio.val-5 input:checked + .circle-content { background-color: #22c55e; }
.matrix-circle-radio.val-4 input:checked + .circle-content { background-color: #84cc16; }
.matrix-circle-radio.val-3 input:checked + .circle-content { background-color: #eab308; }
.matrix-circle-radio.val-2 input:checked + .circle-content { background-color: #f97316; }
.matrix-circle-radio.val-1 input:checked + .circle-content { background-color: #ef4444; }
