:root {
    --navy: #071426;
    --navy-2: #0c1e35;
    --blue: #1769e0;
    --blue-light: #eaf3ff;
    --aws-orange: #ff9900;
    --text: #142033;
    --muted: #66758a;
    --border: #e4eaf1;
    --surface: #ffffff;
    --background: #f5f8fc;
    --success: #16835b;
    --shadow: 0 20px 60px rgba(8, 27, 52, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.5;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-shell {
    min-height: 100vh;
}

.topbar {
    height: 76px;
    padding: 0 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: white;
    font-size: 21px;
    font-weight: 800;
    border-radius: 7px;
    transform: skew(-8deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: 2.6px;
    color: var(--muted);
}

.service-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.service-label {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.5px;
}

.service-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
}

.footer {
    padding: 25px 6vw;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    background: white;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .4px;
}

.customer-page {
    min-height: calc(100vh - 76px);
    padding: 80px 7vw 100px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 8vw;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(23,105,224,.08), transparent 30%),
        linear-gradient(135deg, #f7faff 0%, #eef5fd 100%);
}

.hero {
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
    margin-bottom: 17px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #24a36f;
    display: inline-block;
    border-radius: 50%;
    margin-right: 7px;
    box-shadow: 0 0 0 5px rgba(36,163,111,.1);
}

.hero h1,
.survey-header h1,
.recommendation-header h1,
.admin-header h1,
.detail-header h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -3px;
    font-weight: 780;
}

.hero h1 span,
.survey-header h1 span,
.recommendation-header h1 span,
.admin-header h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 560px;
    margin: 27px 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 8px 25px rgba(8,27,52,.05);
    font-size: 11px;
    font-weight: 700;
    color: #425169;
}

.badge-icon {
    color: var(--aws-orange);
    font-size: 13px;
    font-weight: 900;
}

.form-card {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(210,221,235,.9);
    border-radius: 16px;
    padding: 42px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.form-card-header,
.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-start;
}

.section-number {
    color: var(--aws-orange);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 2px;
}

.form-card h2,
.dashboard-card h2 {
    margin: 7px 0 5px;
    font-size: 25px;
    letter-spacing: -.6px;
}

.form-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.step-indicator {
    display: flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
    color: #9aa7b8;
}

.step-indicator strong {
    color: var(--navy);
    font-size: 18px;
}

.step-indicator span {
    font-size: 10px;
}

.step-indicator.large strong {
    font-size: 27px;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 21px;
    margin-top: 34px;
}

.full-width {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    color: #34445a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    margin-bottom: 8px;
}

.field label span {
    color: var(--aws-orange);
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    background: #fbfcfe;
    border: 1px solid #d8e0ea;
    border-radius: 7px;
    color: var(--text);
    outline: none;
    transition: .2s;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23,105,224,.08);
    background: white;
}

.form-action,
.survey-bottom,
.final-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 34px;
}

.form-action > span,
.survey-bottom > div {
    color: #8a98aa;
    font-size: 10px;
    max-width: 280px;
}

.primary-button,
.submit-button,
.secondary-button {
    border: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 0 23px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    transition: .2s;
}

.primary-button {
    background: var(--navy);
    color: white;
}

.primary-button:hover {
    background: var(--blue);
    transform: translateY(-1px);
}

.primary-button span,
.submit-button span {
    font-size: 18px;
}

.primary-button.full {
    width: 100%;
    margin-top: 27px;
}

.alert {
    margin-top: 22px;
    padding: 13px 15px;
    border-radius: 7px;
    background: #fff5e6;
    border: 1px solid #ffd79c;
    color: #8a5600;
    font-size: 12px;
}

.cloud-decoration {
    position: absolute;
    border: 1px solid rgba(23,105,224,.07);
    border-radius: 50%;
}

.cloud-one {
    width: 560px;
    height: 560px;
    right: -300px;
    top: -230px;
}

.cloud-two {
    width: 350px;
    height: 350px;
    left: -210px;
    bottom: -190px;
}

.survey-page,
.recommendation-page,
.admin-page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 65px 30px 100px;
}

.survey-header,
.recommendation-header,
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
}

.survey-header p,
.recommendation-header p,
.admin-header p {
    max-width: 650px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.progress-track {
    display: flex;
    align-items: center;
    margin: 55px 0 35px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    color: #98a5b5;
    font-size: 10px;
    font-weight: 750;
}

.progress-step span {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid #d7e0eb;
    font-size: 9px;
}

.progress-step.current {
    color: var(--navy);
}

.progress-step.current span,
.progress-step.completed span {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.progress-line {
    height: 1px;
    width: 90px;
    background: #dce3ec;
    margin: 0 15px;
}

.progress-line.active {
    background: var(--blue);
}

.question-list {
    display: grid;
    gap: 15px;
}

.question-card {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(8,27,52,.035);
}

.question-number {
    color: var(--aws-orange);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1px;
}

.question-content h3 {
    margin: 0;
    max-width: 820px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 680;
}

.rating-group {
    display: flex;
    gap: 11px;
    margin-top: 22px;
}

.rating-option input,
.nps-scale input {
    display: none;
}

.rating-circle {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid #d4dde8;
    border-radius: 50%;
    color: #64758b;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: .18s;
}

.rating-option:hover .rating-circle {
    border-color: var(--blue);
    color: var(--blue);
}

.rating-option input:checked + .rating-circle {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: 0 7px 18px rgba(23,105,224,.22);
}

.rating-scale,
.nps-labels {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin-top: 8px;
    color: #a0adbc;
    font-size: 9px;
}

.survey-bottom > div {
    display: flex;
    gap: 8px;
    max-width: none;
}

.survey-bottom strong {
    color: var(--navy);
}

.recommendation-page {
    max-width: 1100px;
}

.nps-card,
.feedback-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(8,27,52,.04);
}

.nps-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--navy);
}

.nps-title span {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 850;
}

.nps-title strong {
    font-size: 12px;
    color: var(--muted);
}

.nps-scale {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 8px;
    margin-top: 28px;
}

.nps-scale label span {
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid #d5deea;
    border-radius: 6px;
    font-weight: 750;
    color: #5e6e82;
    cursor: pointer;
    transition: .18s;
}

.nps-scale label:hover span {
    border-color: var(--blue);
}

.nps-scale input:checked + span {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
}

.nps-labels {
    max-width: none;
    margin-top: 10px;
}

.feedback-card {
    margin-top: 17px;
}

.feedback-heading {
    display: flex;
    gap: 15px;
    align-items: center;
}

.feedback-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 22px;
}

.feedback-heading h2 {
    margin: 0;
    font-size: 17px;
}

.feedback-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.feedback-card textarea {
    width: 100%;
    margin-top: 23px;
    padding: 15px;
    border: 1px solid #d6dfeb;
    border-radius: 7px;
    resize: vertical;
    outline: none;
    min-height: 130px;
}

.feedback-card textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23,105,224,.07);
}

.privacy-note {
    color: #8391a3;
    font-size: 10px;
}

.privacy-note span {
    color: var(--success);
    font-weight: 900;
    margin-right: 5px;
}

.submit-button {
    background: var(--aws-orange);
    color: #172235;
    min-height: 52px;
    padding: 0 28px;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 25px rgba(255,153,0,.22);
}

.thankyou-page {
    min-height: calc(100vh - 145px);
    padding: 110px 30px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.success-ring {
    width: 82px;
    height: 82px;
    margin: 0 auto 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf8f2;
    color: var(--success);
    border: 1px solid #c7eddd;
    font-size: 30px;
}

.thankyou-page .eyebrow {
    color: var(--success);
}

.thankyou-page h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
}

.thankyou-page h1 span {
    color: var(--blue);
}

.thankyou-page > p {
    max-width: 590px;
    margin: 25px auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.thankyou-card {
    margin-top: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
}

.thankyou-card strong,
.thankyou-card span {
    display: block;
}

.thankyou-card strong {
    font-size: 14px;
}

.thankyou-card span {
    color: var(--muted);
    font-size: 10px;
}

.thankyou-divider {
    width: 1px;
    height: 35px;
    background: var(--border);
}

.service-points {
    display: flex;
    gap: 15px;
}

.service-points span {
    color: var(--blue);
    font-weight: 700;
}

.admin-login-page {
    min-height: calc(100vh - 145px);
    display: grid;
    place-items: center;
    padding: 70px 25px;
    background:
        radial-gradient(circle at 50% 0%, rgba(23,105,224,.12), transparent 35%);
}

.admin-login-card {
    width: 100%;
    max-width: 440px;
    padding: 45px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.admin-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: white;
    border-radius: 7px;
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 30px;
}

.admin-login-card h1 {
    margin: 0;
    font-size: 29px;
    letter-spacing: -1px;
}

.admin-login-card p {
    margin: 6px 0 30px;
    color: var(--muted);
    font-size: 12px;
}

.admin-page {
    max-width: 1400px;
}

.admin-header {
    align-items: center;
}

.admin-header h1 {
    font-size: 48px;
}

.admin-actions {
    display: flex;
    gap: 9px;
}

.secondary-button {
    border: 1px solid #d4dfea;
    background: white;
    color: var(--navy);
}

.secondary-button:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 45px;
}

.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
}

.metric-card.featured {
    border-top: 3px solid var(--blue);
}

.metric-label {
    display: block;
    color: #8997a9;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.4px;
}

.metric-card strong {
    display: block;
    margin-top: 12px;
    font-size: 34px;
    letter-spacing: -1.5px;
}

.metric-card strong small {
    font-size: 12px;
    color: var(--muted);
}

.metric-caption {
    display: block;
    margin-top: 5px;
    color: #99a5b4;
    font-size: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.dashboard-card,
.responses-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}

.dashboard-card h2 {
    margin-top: 4px;
}

.distribution {
    margin-top: 25px;
}

.distribution-row {
    display: grid;
    grid-template-columns: 25px 1fr 30px;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.distribution-number {
    font-size: 11px;
    font-weight: 800;
}

.distribution-track {
    height: 8px;
    background: #edf1f6;
    border-radius: 20px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: var(--blue);
    border-radius: inherit;
}

.distribution-row strong {
    font-size: 10px;
    text-align: right;
}

.insight-card {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.insight-card .eyebrow {
    color: #79aefc;
}

.insight-card h2 {
    font-size: 31px;
    line-height: 1.1;
    margin: 0;
}

.insight-card p {
    color: #9eafc5;
    font-size: 12px;
    line-height: 1.7;
}

.insight-line {
    width: 40px;
    height: 2px;
    margin: 25px 0 12px;
    background: var(--aws-orange);
}

.insight-card > span:last-child {
    font-size: 9px;
    letter-spacing: 1px;
    color: #8194ac;
}

.responses-card {
    margin-top: 15px;
}

.response-count {
    color: #8997a9;
    font-size: 10px;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

th {
    text-align: left;
    padding: 12px 10px;
    color: #8b98a9;
    font-size: 9px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 15px 10px;
    border-bottom: 1px solid #edf1f5;
    color: #5d6c80;
}

td strong {
    color: var(--navy);
}

.response-id {
    color: var(--blue);
    font-weight: 800;
}

.score-pill {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    background: #eaf3ff;
    color: var(--blue);
    font-weight: 800;
}

.recommendation-score {
    font-weight: 750;
    color: var(--navy);
}

.view-link,
.detail-back a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 750;
}

.empty-state {
    padding: 50px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.detail-back {
    margin-bottom: 30px;
    font-size: 11px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.detail-header h1 {
    font-size: 45px;
}

.detail-header p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.detail-date {
    text-align: right;
}

.detail-date span {
    display: block;
    color: #94a1b1;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.3px;
}

.detail-date strong {
    display: block;
    margin-top: 6px;
    color: var(--navy);
    font-size: 11px;
}

.detail-grid {
    display: grid;
    gap: 10px;
    margin-top: 40px;
}

.detail-question {
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    align-items: center;
    gap: 15px;
    padding: 19px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.detail-question > span {
    color: var(--aws-orange);
    font-size: 10px;
    font-weight: 850;
}

.detail-question p {
    margin: 0;
    font-size: 12px;
}

.detail-question strong {
    text-align: right;
    color: var(--blue);
    font-size: 12px;
}

.detail-recommendation {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
}

.detail-recommendation > div {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
}

.detail-recommendation > div:first-child strong {
    display: block;
    margin-top: 8px;
    color: var(--blue);
    font-size: 40px;
}

.detail-recommendation small {
    color: var(--muted);
    font-size: 11px;
}

.detail-feedback p {
    color: #58687c;
    font-size: 12px;
    line-height: 1.8;
}

.error-page {
    min-height: calc(100vh - 145px);
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 80px 25px;
}

.error-code {
    color: var(--blue);
    font-size: 90px;
    font-weight: 850;
    letter-spacing: -5px;
}

.error-page h1 {
    margin: 0;
    font-size: 30px;
}

.error-page p {
    color: var(--muted);
    margin: 12px 0 25px;
}

@media (max-width: 900px) {

    .customer-page {
        grid-template-columns: 1fr;
        padding: 55px 25px;
    }

    .hero {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .form-card {
        padding: 28px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .topbar {
        padding: 0 20px;
    }

    .service-brand {
        display: none;
    }

    .footer {
        flex-direction: column;
        padding: 22px 20px;
    }

    .customer-page,
    .survey-page,
    .recommendation-page,
    .admin-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .form-action,
    .survey-bottom,
    .final-action,
    .admin-header,
    .detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .hero h1,
    .survey-header h1,
    .recommendation-header h1 {
        font-size: 42px;
    }

    .progress-track {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .progress-line {
        width: 30px;
        margin: 0 8px;
    }

    .question-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .rating-group {
        justify-content: space-between;
    }

    .nps-card,
    .feedback-card {
        padding: 22px;
    }

    .nps-scale {
        gap: 4px;
    }

    .nps-scale label span {
        height: 40px;
        font-size: 10px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .detail-question {
        grid-template-columns: 30px 1fr;
    }

    .detail-question strong {
        grid-column: 2;
        text-align: left;
    }

    .detail-recommendation {
        grid-template-columns: 1fr;
    }

    .thankyou-card {
        flex-direction: column;
    }

    .thankyou-divider {
        width: 80px;
        height: 1px;
    }

}


/* ============================================================
   AABASOFT AWS MSP CUSTOMER EXPERIENCE PORTAL
   FINAL UI / RESPONSIVE POLISH
   ============================================================ */

/* ---------- GLOBAL POLISH ---------- */

::selection {
    background: rgba(23, 105, 224, 0.18);
    color: var(--navy);
}

input::placeholder,
textarea::placeholder {
    color: #94a1b2;
    opacity: 1;
}

input,
textarea,
button {
    -webkit-tap-highlight-color: transparent;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(23, 105, 224, 0.16);
    outline-offset: 2px;
}


/* ---------- CUSTOMER LANDING PAGE ---------- */

.customer-page {
    min-height: calc(100vh - 76px);
    padding-top: clamp(55px, 7vh, 85px);
    padding-bottom: clamp(65px, 9vh, 100px);
}

.customer-page::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(23, 105, 224, 0.08);
    border-radius: 50%;
    right: -300px;
    top: -180px;
    pointer-events: none;
}

.customer-page::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(23, 105, 224, 0.07);
    border-radius: 50%;
    left: -280px;
    bottom: -270px;
    pointer-events: none;
}

.hero {
    max-width: 610px;
}

.hero h1 {
    max-width: 570px;
}

.hero-description {
    max-width: 520px;
}


/* ---------- FORM CARD ---------- */

.form-card {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
}

.form-card:hover {
    box-shadow:
        0 24px 70px rgba(8, 27, 52, 0.10),
        0 0 0 1px rgba(23, 105, 224, 0.02);
}

.form-card-header {
    margin-bottom: 4px;
}

.form-card h2 {
    font-size: clamp(24px, 2.1vw, 29px);
}

.form-card-header p {
    font-size: 14px;
    line-height: 1.65;
}


/* ---------- INPUTS ---------- */

.field input,
.feedback-card textarea {
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.field input:hover,
.feedback-card textarea:hover {
    border-color: #c5d1df;
    background: #ffffff;
}

.field input:focus,
.feedback-card textarea:focus {
    background: #ffffff;
}


/* ---------- BUTTONS ---------- */

.primary-button,
.submit-button {
    min-height: 52px;
    border-radius: 8px;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.primary-button:hover,
.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(7, 20, 38, 0.16);
}

.primary-button:active,
.submit-button:active {
    transform: translateY(0);
}


/* ---------- SURVEY PAGE ---------- */

.survey-page,
.recommendation-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 62px 0 90px;
}

.survey-header,
.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 34px;
}

.survey-header h1,
.recommendation-header h1 {
    font-size: clamp(42px, 5vw, 66px);
}

.survey-header p,
.recommendation-header p {
    max-width: 680px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}


/* ---------- PROGRESS TRACK ---------- */

.progress-track {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 38px;
    padding: 0 2px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #91a0b2;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .3px;
}

.progress-step span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #d9e1eb;
    background: #fff;
    color: #8b99aa;
    font-size: 10px;
}

.progress-step.completed {
    color: var(--success);
}

.progress-step.completed span {
    background: #edf9f4;
    border-color: #ccecdf;
    color: var(--success);
}

.progress-step.current {
    color: var(--navy);
}

.progress-step.current span {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.progress-line {
    height: 1px;
    flex: 1;
    min-width: 30px;
    margin: 0 14px;
    background: #dce4ed;
}

.progress-line.active {
    background: #9bbce9;
}


/* ---------- QUESTION CARDS ---------- */

.question-list {
    display: grid;
    gap: 14px;
}

.question-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    padding: 27px 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.question-card:hover {
    border-color: #ccd9e8;
    box-shadow: 0 10px 30px rgba(8, 27, 52, 0.055);
}

.question-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
}

.question-content h3 {
    margin: 2px 0 21px;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}


/* ---------- 1–5 RATING ---------- */

.rating-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.rating-option {
    position: relative;
    cursor: pointer;
}

.rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-circle {
    min-height: 47px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
    background: #fbfcfe;
    color: #526277;
    font-size: 14px;
    font-weight: 750;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.rating-option:hover .rating-circle {
    border-color: #9bbce9;
    background: #f4f8fe;
    color: var(--blue);
    transform: translateY(-1px);
}

.rating-option input:checked + .rating-circle {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
    box-shadow: 0 7px 18px rgba(23, 105, 224, 0.20);
}

.rating-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: #96a3b3;
    font-size: 10px;
}


/* ---------- SURVEY FOOTER ACTION ---------- */

.survey-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    padding: 22px 2px 0;
}

.survey-bottom > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b99aa;
    font-size: 11px;
}

.survey-bottom strong {
    color: var(--navy);
}


/* ---------- NPS ---------- */

.nps-card,
.feedback-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(8, 27, 52, 0.045);
}

.nps-card {
    padding: 31px;
}

.nps-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 23px;
}

.nps-title span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.7px;
}

.nps-title strong {
    color: var(--navy);
    font-size: 13px;
}

.nps-scale {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 7px;
}

.nps-scale label {
    position: relative;
    cursor: pointer;
}

.nps-scale input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nps-scale label span {
    min-height: 51px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e1eb;
    border-radius: 7px;
    background: #fbfcfe;
    color: #536176;
    font-size: 13px;
    font-weight: 750;
    transition: .18s ease;
}

.nps-scale label:hover span {
    border-color: #9bbce9;
    color: var(--blue);
    background: #f4f8fe;
    transform: translateY(-1px);
}

.nps-scale input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
    box-shadow: 0 7px 18px rgba(7, 20, 38, 0.17);
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #96a3b3;
    font-size: 10px;
}


/* ---------- ADDITIONAL FEEDBACK ---------- */

.feedback-card {
    margin-top: 16px;
    padding: 31px;
}

.feedback-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feedback-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 20px;
    font-weight: 500;
}

.feedback-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
}

.feedback-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.feedback-card textarea {
    width: 100%;
    resize: vertical;
    min-height: 155px;
    padding: 15px 16px;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--text);
    outline: none;
    line-height: 1.6;
}


/* ---------- FINAL SUBMISSION ---------- */

.final-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 24px;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8ea0;
    font-size: 11px;
}

.privacy-note span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf9f4;
    color: var(--success);
    font-size: 10px;
    font-weight: 800;
}


/* ---------- ALERT ---------- */

.alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #f1c9c9;
    border-radius: 8px;
    background: #fff6f6;
    color: #a13b3b;
    font-size: 12px;
}


/* ---------- THANK YOU PAGE ---------- */

.thankyou-page {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 70px 24px;
    background:
        radial-gradient(circle at 50% 20%, rgba(23,105,224,.08), transparent 34%),
        linear-gradient(135deg, #f7faff 0%, #eef5fd 100%);
}

.thankyou-card {
    width: min(650px, 100%);
    padding: 60px 45px;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.thankyou-card .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf9f4;
    color: var(--success);
    font-size: 27px;
    font-weight: 800;
}

.thankyou-card h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 5vw, 50px);
    letter-spacing: -2px;
}

.thankyou-card p {
    max-width: 470px;
    margin: 17px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {

    .topbar {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .customer-page {
        grid-template-columns: .85fr 1.15fr;
        gap: 5vw;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .form-card {
        padding: 34px;
    }

    .hero h1 {
        font-size: clamp(42px, 5.5vw, 62px);
    }
}


@media (max-width: 900px) {

    .customer-page {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .hero {
        max-width: 720px;
    }

    .hero-description {
        max-width: 650px;
    }

    .form-card {
        max-width: 760px;
        margin: 0;
    }

    .survey-page,
    .recommendation-page {
        width: min(100% - 36px, 760px);
    }

    .survey-header,
    .recommendation-header {
        align-items: flex-start;
    }
}


@media (max-width: 650px) {

    .topbar {
        height: 68px;
        padding: 0 20px;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        font-size: 16px;
    }

    .service-label {
        font-size: 13px;
    }

    .service-brand {
        gap: 8px;
    }

    .customer-page {
        padding: 42px 20px 55px;
    }

    .hero h1 {
        font-size: clamp(39px, 12vw, 55px);
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.65;
    }

    .form-card {
        padding: 27px 22px;
        border-radius: 13px;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-top: 27px;
    }

    .full-width {
        grid-column: auto;
    }

    .form-card-header {
        gap: 12px;
    }

    .form-card h2 {
        font-size: 23px;
    }

    .step-indicator.large strong {
        font-size: 23px;
    }

    .survey-page,
    .recommendation-page {
        width: calc(100% - 28px);
        padding: 42px 0 60px;
    }

    .survey-header,
    .recommendation-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 26px;
    }

    .survey-header h1,
    .recommendation-header h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .survey-header p,
    .recommendation-header p {
        font-size: 14px;
        line-height: 1.65;
    }

    .progress-track {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .progress-line {
        min-width: 18px;
        margin: 0 8px;
    }

    .progress-step {
        font-size: 9px;
    }

    .question-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 23px 20px;
    }

    .question-number {
        width: 32px;
        height: 32px;
    }

    .question-content h3 {
        font-size: 14px;
    }

    .rating-group {
        gap: 6px;
    }

    .rating-circle {
        min-height: 43px;
    }

    .survey-bottom,
    .final-action {
        flex-direction: column;
        align-items: stretch;
    }

    .survey-bottom .primary-button,
    .final-action .submit-button {
        width: 100%;
        justify-content: center;
    }

    .nps-card,
    .feedback-card {
        padding: 22px 18px;
    }

    .nps-scale {
        gap: 4px;
    }

    .nps-scale label span {
        min-height: 42px;
        font-size: 11px;
    }

    .nps-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .footer {
        padding: 20px;
        flex-direction: column;
        gap: 7px;
    }

    .thankyou-card {
        padding: 45px 25px;
    }
}


@media (max-width: 420px) {

    .brand-subtitle {
        display: none;
    }

    .service-brand .service-divider {
        display: none;
    }

    .service-label {
        font-size: 11px;
        letter-spacing: .4px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .rating-circle {
        min-height: 40px;
        font-size: 12px;
    }

    .nps-scale label span {
        min-height: 39px;
        font-size: 10px;
    }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   FIX — CSAT RATING SCALE ALIGNMENT
   Keep endpoint labels aligned with rating 1 and rating 5
   ============================================================ */

.rating-scale {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    margin-top: 9px !important;
}

.rating-scale span {
    color: #96a3b3;
    font-size: 10px;
    line-height: 1.4;
}

.rating-scale span:first-child {
    grid-column: 1;
    text-align: left;
}

.rating-scale span:last-child {
    grid-column: 5;
    text-align: right;
}


/* Mobile — retain the same endpoint alignment */
@media (max-width: 650px) {
    .rating-scale {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .rating-scale span {
        font-size: 9px;
    }
}



/* ============================================================
   AABASOFT + AWS PARTNER BRANDING
   ============================================================ */

.topbar {
    min-height: 78px;
    padding: 0 clamp(24px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5ebf2;
    position: relative;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.aabasoft-logo {
    display: block;
    width: auto;
    height: 43px;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.partner-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.aws-partner-badge {
    display: block;
    width: auto;
    height: 55px;
    max-width: 260px;
    object-fit: contain;
    object-position: right center;
}


/* Keep header elegant on smaller screens */

@media (max-width: 650px) {

    .topbar {
        min-height: 70px;
        padding: 0 20px;
        gap: 15px;
    }

    .aabasoft-logo {
        height: 36px;
        max-width: 175px;
    }

    .aws-partner-badge {
        height: 45px;
        max-width: 185px;
    }

}


@media (max-width: 430px) {

    .topbar {
        padding: 0 16px;
    }

    .aabasoft-logo {
        height: 31px;
        max-width: 145px;
    }

    .aws-partner-badge {
        height: 38px;
        max-width: 150px;
    }

}


/* Footer branding */

.footer {
    min-height: 58px;
    padding: 17px clamp(20px, 5vw, 72px);
}


/* ============================================================
   FINAL HEADER BRANDING FIX
   ============================================================ */

.site-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.topbar {
    width: 100%;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    padding: 0 clamp(24px, 5vw, 72px) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

.topbar .brand {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 240px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}

.topbar .aabasoft-logo {
    display: block !important;
    width: auto !important;
    height: 42px !important;
    max-width: 210px !important;
    max-height: 42px !important;
    object-fit: contain !important;
}

.topbar .partner-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 220px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.topbar .aws-partner-badge {
    display: block !important;
    width: auto !important;
    height: 54px !important;
    max-width: 210px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    object-position: center !important;
}


/* Desktop / normal screens */

@media (min-width: 651px) {
    .topbar .aabasoft-logo {
        height: 42px !important;
        max-height: 42px !important;
    }

    .topbar .aws-partner-badge {
        height: 54px !important;
        max-height: 54px !important;
        max-width: 210px !important;
    }
}


/* Tablet */

@media (max-width: 650px) {
    .topbar {
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        padding: 0 20px !important;
    }

    .topbar .aabasoft-logo {
        height: 35px !important;
        max-height: 35px !important;
        max-width: 165px !important;
    }

    .topbar .partner-brand {
        max-width: 170px !important;
    }

    .topbar .aws-partner-badge {
        height: 44px !important;
        max-height: 44px !important;
        max-width: 170px !important;
    }
}


/* Mobile */

@media (max-width: 430px) {
    .topbar {
        padding: 0 16px !important;
    }

    .topbar .aabasoft-logo {
        height: 30px !important;
        max-height: 30px !important;
        max-width: 140px !important;
    }

    .topbar .partner-brand {
        max-width: 145px !important;
    }

    .topbar .aws-partner-badge {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 145px !important;
    }
}


/* ============================================================
   AWS BADGE SIZE ADJUSTMENT
   ============================================================ */

.topbar .aws-partner-badge {
    height: 72px !important;
    max-height: 72px !important;
    max-width: 280px !important;
    width: auto !important;
    object-fit: contain !important;
}

.topbar .partner-brand {
    max-width: 290px !important;
    height: 78px !important;
}


/* Keep the Aabasoft logo slightly more prominent */

.topbar .aabasoft-logo {
    height: 46px !important;
    max-height: 46px !important;
    max-width: 225px !important;
}


/* Responsive */

@media (max-width: 650px) {

    .topbar .aabasoft-logo {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 175px !important;
    }

    .topbar .aws-partner-badge {
        height: 58px !important;
        max-height: 58px !important;
        max-width: 210px !important;
    }

    .topbar .partner-brand {
        max-width: 220px !important;
    }

}

@media (max-width: 430px) {

    .topbar .aabasoft-logo {
        height: 33px !important;
        max-height: 33px !important;
        max-width: 150px !important;
    }

    .topbar .aws-partner-badge {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 175px !important;
    }

    .topbar .partner-brand {
        max-width: 180px !important;
    }

}


/* ============================================================
   RATING SCALE LABEL ALIGNMENT — FINAL
   ============================================================ */

.rating-scale {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #8a9ab0 !important;
}

.rating-scale span:first-child {
    text-align: left !important;
}

.rating-scale span:last-child {
    text-align: right !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 650px) {

    .rating-scale {
        margin-top: 8px !important;
    }

    .rating-scale span {
        font-size: 10px !important;
    }

}


/* ============================================================
   RATING ENDPOINT LABELS — EXPLICIT POSITIONING
   ============================================================ */

.rating-scale {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 30px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    position: absolute !important;
    top: 0 !important;
    display: block !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #8a9ab0 !important;
}

.rating-scale span:first-child {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
}

.rating-scale span:last-child {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}


/* Mobile */

@media (max-width: 650px) {

    .rating-scale {
        height: 26px !important;
        margin-top: 8px !important;
    }

    .rating-scale span {
        font-size: 10px !important;
    }

}


/* ============================================================
   RATING ENDPOINT LABELS — EXPLICIT POSITIONING
   ============================================================ */

.rating-scale {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 30px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    position: absolute !important;
    top: 0 !important;
    display: block !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #8a9ab0 !important;
}

.rating-scale span:first-child {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
}

.rating-scale span:last-child {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}


/* Mobile */

@media (max-width: 650px) {

    .rating-scale {
        height: 26px !important;
        margin-top: 8px !important;
    }

    .rating-scale span {
        font-size: 10px !important;
    }

}


/* ============================================================
   FINAL FIX — CSAT LABELS MUST SPAN FULL RATING WIDTH
   ============================================================ */

.rating-scale {
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
    display: block !important;
    height: 30px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    position: absolute !important;
    top: 0 !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rating-scale span:first-child {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
}

.rating-scale span:last-child {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}


/* Mobile */

@media (max-width: 650px) {
    .rating-scale {
        width: 100% !important;
        max-width: none !important;
        height: 26px !important;
    }
}


/* ============================================================
   FINAL CSAT LABEL POSITIONING
   Align labels directly under rating 1 and rating 5
   ============================================================ */

.rating-scale {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 30px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    position: absolute !important;
    top: 0 !important;
    width: 20% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #8a9ab0 !important;
    box-sizing: border-box !important;
}

.rating-scale span:first-child {
    left: 0 !important;
    right: auto !important;
    text-align: center !important;
}

.rating-scale span:last-child {
    right: 0 !important;
    left: auto !important;
    text-align: center !important;
}


/* Mobile */

@media (max-width: 650px) {

    .rating-scale {
        height: 26px !important;
    }

    .rating-scale span {
        width: 20% !important;
        font-size: 10px !important;
    }

}


/* ============================================================
   FINAL — CSAT LABELS MATCH THE 5-COLUMN RATING GRID
   ============================================================ */

.rating-scale {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    position: static !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #8a9ab0 !important;
    text-align: center !important;
}

.rating-scale span:first-child {
    grid-column: 1 !important;
    text-align: center !important;
}

.rating-scale span:last-child {
    grid-column: 5 !important;
    text-align: center !important;
}


/* Mobile */

@media (max-width: 650px) {

    .rating-scale {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .rating-scale span {
        font-size: 10px !important;
    }

}


/* ============================================================
   FINAL CSAT LABEL ALIGNMENT
   Match labels to the actual 1 and 5 rating buttons
   ============================================================ */

.rating-scale {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    position: static !important;
    display: block !important;
    width: 63px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #8a9ab0 !important;
    white-space: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.rating-scale span:first-child {
    grid-column: 1 !important;
    justify-self: start !important;
}

.rating-scale span:last-child {
    grid-column: 5 !important;
    justify-self: start !important;
}


/* Mobile */

@media (max-width: 650px) {

    .rating-scale {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .rating-scale span {
        width: 43px !important;
        font-size: 10px !important;
    }

}


/* ============================================================
   FINAL — CSAT ENDPOINT LABELS
   Keep labels aligned to rating 1 and rating 5 without wrapping
   ============================================================ */

.rating-scale {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 32px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rating-scale span {
    position: absolute !important;
    top: 0 !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #8a9ab0 !important;
}

.rating-scale span:first-child {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
}

.rating-scale span:last-child {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}

@media (max-width: 650px) {
    .rating-scale {
        height: 26px !important;
    }

    .rating-scale span {
        font-size: 10px !important;
    }
}


/* FINAL — move only the right CSAT label under rating 5 */
.rating-scale span:last-child {
    right: calc(10% + 45px) !important;
    left: auto !important;
    white-space: nowrap !important;
}



/* =========================================================
   ADMIN RESPONSE DETAIL
   ========================================================= */

.detail-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.detail-summary-card {
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 14px;
    padding: 24px;
    min-height: 145px;
    box-sizing: border-box;
}

.detail-summary-card strong {
    display: block;
    margin-top: 12px;
    font-size: 32px;
    line-height: 1.1;
    color: #172033;
}

.detail-summary-card strong small {
    font-size: 15px;
    font-weight: 500;
    color: #8a9ab0;
}

.detail-summary-card p {
    margin: 10px 0 0;
    color: #7d8ca1;
    font-size: 13px;
    line-height: 1.5;
}

.detail-summary-card .record-type {
    font-size: 23px;
    letter-spacing: .04em;
}


.detail-section {
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 22px;
}

.detail-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section-heading h2 {
    margin: 6px 0 0;
    font-size: 21px;
    color: #172033;
}

.detail-section-meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #8a9ab0;
}


.detail-question {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #edf1f5;
}

.detail-question:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-question:first-child {
    padding-top: 5px;
}

.detail-question-number {
    font-size: 12px;
    font-weight: 700;
    color: #9aa9bb;
    letter-spacing: .08em;
}

.detail-question-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #263247;
}

.rating-description {
    display: inline-block;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a9ab0;
}

.detail-rating {
    min-width: 70px;
    text-align: right;
    font-size: 20px;
    color: #172033;
}

.detail-rating small {
    font-size: 12px;
    font-weight: 500;
    color: #8a9ab0;
}


.detail-recommendation {
    display: grid;
    grid-template-columns: minmax(180px, .65fr) 1.35fr;
    gap: 22px;
    margin-bottom: 22px;
}

.recommendation-score,
.detail-feedback {
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 14px;
    padding: 28px;
}

.recommendation-score > strong {
    display: block;
    margin-top: 12px;
    font-size: 40px;
    line-height: 1;
    color: #172033;
}

.recommendation-score > strong small {
    font-size: 15px;
    color: #8a9ab0;
    font-weight: 500;
}


.recommendation-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.recommendation-promoter {
    background: #e9f7ef;
    color: #247a4b;
}

.recommendation-passive {
    background: #fff5dc;
    color: #956d18;
}

.recommendation-detractor {
    background: #fdebec;
    color: #a33b42;
}


.feedback-box {
    margin-top: 13px;
    padding: 17px 18px;
    min-height: 80px;
    background: #f7f9fc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    box-sizing: border-box;
    color: #354258;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.muted-feedback {
    color: #9aa7b7;
}


.detail-metadata {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e4eaf1;
    border: 1px solid #e4eaf1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-metadata > div {
    background: #ffffff;
    padding: 18px 20px;
}

.detail-metadata span {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #91a0b2;
}

.detail-metadata strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334056;
    word-break: break-word;
}


@media (max-width: 900px) {

    .detail-summary {
        grid-template-columns: 1fr;
    }

    .detail-recommendation {
        grid-template-columns: 1fr;
    }

    .detail-metadata {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .detail-section {
        padding: 20px;
    }

    .detail-question {
        grid-template-columns: 32px 1fr;
        gap: 12px;
    }

    .detail-rating {
        grid-column: 2;
        text-align: left;
        margin-top: -5px;
    }

    .detail-metadata {
        grid-template-columns: 1fr;
    }

}
