
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --primary-color: #00AEEF; 
    --text-color: #333333;
    --text-light-color: #555555;
    --background-color: #F4F4F9;
    --container-bg: #FFFFFF;
    --border-color: #E9ECEF;
    --font-sans-serif: 'Poppins', sans-serif;
    --font-serif: 'Merriweather', serif;

    --nps-detractor: #E74C3C;
    --nps-passive: #F39C12;
    --nps-promoter: #2ECC71;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans-serif);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.glass-wrapper {
    background-color: var(--container-bg);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 900px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    text-align: center;
}

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

.logo-campus {
    height: 40px;
}

.logo-ucc {
    height: 45px;
}

/* --- Intro Screen --- */
.survey-intro .breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light-color);
    margin-bottom: 1rem;
}

.survey-intro .survey-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin: 0 auto 1rem;
}

.survey-intro .survey-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: var(--text-light-color);
}

.info-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--background-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Survey Body --- */
.survey-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#dimension-title-display {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.step.active {
    animation: fadeIn 0.5s ease;
}

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

.question {
    font-family: var(--font-sans-serif);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.subheading {
    font-size: 1rem;
    color: var(--text-light-color);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.question .fas {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.info-description {
    text-align: left;
    max-width: 650px;
    margin: 2rem auto 0;
    line-height: 1.7;
    font-size: 1rem;
}
.info-description ul {
    padding-left: 20px;
}

/* --- Answer Types --- */
.answers {
    max-width: 800px;
    margin: 0 auto;
}

.answer input[type="radio"],
.answer input[type="checkbox"] {
    display: none; 
}

.answer label {
    display: block;
    background-color: #F8F9FA;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: left;
    transition: all 0.2s ease;
    font-weight: 500;
}

.answer label:hover {
    border-color: var(--primary-color);
}

.answer input:checked + label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

/* 'Other' input field */
.other-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.other-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-sans-serif);
    width: 60%;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
    transition: all 0.3s ease;
}

.answer input:checked + .other-label-container .other-input {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.other-input::placeholder {
    color: #999;
}

.answer input:checked + .other-label-container .other-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Range Slider */
.range-container {
    padding: 2rem 0;
}
.range-slider-numbers {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1rem;
    padding: 0 5px;
    margin-bottom: 0.5rem;
}
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    margin: 1rem 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 174, 239, 0.5);
}
.range-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-light-color);
    font-size: 0.9rem;
    padding: 0 5px;
}

/* NPS Scale */
.nps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}
.nps-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
}
.nps-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.nps-button.selected {
    color: white;
    border-width: 3px;
}
.nps-button.nps-detractor.selected { background-color: var(--nps-detractor); border-color: var(--nps-detractor); }
.nps-button.nps-passive.selected { background-color: var(--nps-passive); border-color: var(--nps-passive); }
.nps-button.nps-promoter.selected { background-color: var(--nps-promoter); border-color: var(--nps-promoter); }
.nps-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-light-color);
    font-size: 0.9rem;
    padding: 0 10px;
}

/* Matrix Question */
.matrix-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}
.matrix-table th, .matrix-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}
.matrix-table th {
    font-weight: 600;
    background-color: #F8F9FA;
    white-space: nowrap;
}
.matrix-table th:nth-child(2),
.matrix-table th:nth-child(3) {
    text-align: center;
}
.matrix-table td {
    vertical-align: middle;
}
.matrix-table tr:last-child td {
    border-bottom: none;
}
.matrix-table tr:hover {
    background-color: #fcfcfd;
}
.matrix-table td:nth-child(2),
.matrix-table td:nth-child(3) {
    text-align: center;
}

.matrix-checkbox {
    display: none;
}

.matrix-checkbox-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.matrix-checkbox:checked + .matrix-checkbox-label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.matrix-checkbox:checked + .matrix-checkbox-label::before {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    line-height: 20px;
}


.other-resource-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans-serif);
    font-size: 0.9rem;
}
.other-row td {
    padding-top: 15px;
}
.other-row label {
    font-weight: 500;
}

/* Ranking Question */
.ranking-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 2rem auto;
}

.ranking-item {
    background-color: #F8F9FA;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    text-align: left;
}

.ranking-item.dragging {
    opacity: 0.5;
    background: #EBF8FF;
    border-style: dashed;
}

.drag-handle {
    color: #999;
    font-size: 1.2rem;
}

.other-ranking-input {
    margin-top: 1.5rem;
}

/* Textarea Input */
.textarea-input {
    width: 100%;
    max-width: 700px;
    min-height: 120px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    resize: vertical;
    margin-top: 1rem;
}


/* --- Footer & Buttons --- */
.survey-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.btn {
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-start {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    padding: 15px 40px;
}
.btn-start:hover {
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
    transform: translateY(-2px);
}

.btn-prev {
    background-color: #E9ECEF;
    color: var(--text-light-color);
}
.btn-prev:hover:not(:disabled) {
    background-color: #d1d5db;
}

.btn-next {
    background-color: var(--primary-color);
    color: white;
}

.btn:disabled {
    background-color: #F8F9FA;
    color: #CED4DA;
    cursor: not-allowed;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    .header {
        flex-direction: column;
        gap: 1.5rem;
    }
    .survey-footer {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    .btn {
        width: 100%;
    }
}
