* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(50, 104, 213, .15), transparent 26rem),
        radial-gradient(circle at 92% 10%, rgba(58, 168, 115, .13), transparent 24rem),
        #f3f7fc;
    color: #15213a;
    font-family: Poppins, sans-serif;
}

.rt-feedback-page {
    min-height: 100vh;
    padding: 28px 16px 48px;
}

.rt-feedback-shell {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.rt-feedback-card {
    overflow: hidden;
    border: 1px solid #dce6f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(21, 33, 58, .13);
}

.rt-feedback-brand {
    padding: 26px 30px 18px;
    border-bottom: 1px solid #e7edf5;
    text-align: center;
}

.rt-feedback-kicker {
    margin-bottom: 14px;
    color: #3268d5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rt-company-brand h2 {
    margin: 0 !important;
    color: #15213a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.25;
    text-transform: none;
}

.rt-company-logo {
    display: block;
    width: auto !important;
    max-width: min(230px, 100%);
    height: auto;
    max-height: 92px;
    margin: 0 auto;
    border: 0 !important;
    object-fit: contain;
}

.rt-feedback-content {
    padding: 28px 30px 32px;
}

.rt-feedback-question {
    padding: 0 !important;
    text-align: center;
}

.rt-feedback-question p {
    max-width: 480px;
    margin: 0 auto 24px;
    color: #243754 !important;
    font-size: 21px !important;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.45;
}

.rt-rating-selector {
    margin: 0;
    text-align: center;
}

.rt-rating-instruction {
    margin: -10px 0 18px;
    color: #6c7c93;
    font-size: 12px;
    line-height: 1.55;
}

.rt-rating-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rt-star-options,
.rt-face-options {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
}

.rt-face-options {
    flex-wrap: wrap;
    max-width: 510px;
}

.rt-rating-option {
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    border: 1px solid #d9e3ef;
    border-radius: 14px;
    background: #f8fbff;
    color: #405570;
    cursor: pointer;
    font: inherit;
    touch-action: manipulation;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
}

.rt-rating-option:focus-visible {
    outline: 0;
    border-color: #3268d5;
    box-shadow: 0 0 0 4px rgba(50, 104, 213, .16);
}

.rt-rating-option:active {
    transform: scale(.97);
}

.rt-star-option {
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    max-width: 82px;
    min-height: 68px;
    padding: 7px 3px 6px;
    place-items: center;
}

.rt-star-icon {
    color: #cbd6e5;
    font-family: Georgia, serif;
    font-size: 39px;
    line-height: .95;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    transition: color .15s ease, transform .15s ease;
}

.rt-star-number {
    color: #7d8da3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.rt-star-option.is-filled .rt-star-icon {
    color: #f3b735;
    transform: translateY(-1px);
}

.rt-star-option.is-selected {
    border-color: #e3ad32;
    background: #fff9e8;
    box-shadow: 0 8px 20px rgba(206, 151, 30, .14);
}

.rt-star-option.is-selected .rt-star-number {
    color: #8a6517;
}

.rt-face-option {
    display: flex;
    flex: 1 1 82px;
    max-width: 94px;
    min-height: 104px;
    padding: 11px 7px 9px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.rt-face-option img {
    width: 52px;
    height: 52px;
    margin-bottom: 7px;
    object-fit: contain;
}

.rt-face-label {
    color: #53657c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.rt-face-option.is-selected {
    border-color: #3268d5;
    background: #edf4ff;
    box-shadow: 0 8px 20px rgba(50, 104, 213, .14);
}

.rt-face-option.is-selected .rt-face-label {
    color: #234fa9;
}

.rt-face-option[data-face-index="2"],
.rt-face-option[data-face-index="4"] {
    display: none;
}

.rt-rating-fieldset[data-face-count="5"] .rt-face-option {
    display: flex;
}

.rt-rating-fieldset[data-face-count="2"] .rt-face-option[data-face-index="3"] {
    display: none;
}

.rt-server-rating-trigger {
    display: none !important;
}

.rt-selection-safety {
    margin: 16px 0 0;
    color: #77879b;
    font-size: 11px;
    line-height: 1.5;
}

.rt-confirm-panel {
    margin-top: 20px;
    padding: 17px;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #f5f9fe;
    animation: rtConfirmIn .18s ease-out;
}

.rt-confirm-panel[hidden] {
    display: none !important;
}

.rt-confirm-summary {
    margin: 0 0 4px;
    color: #1e304c;
    font-size: 15px;
    line-height: 1.45;
}

.rt-confirm-help {
    margin: 0 0 13px;
    color: #728198;
    font-size: 11px;
    line-height: 1.45;
}

.rt-continue-button,
.rt-feedback-submit {
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #3268d5, #4c7be0);
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(50, 104, 213, .22);
    touch-action: manipulation;
}

.rt-continue-button:focus-visible,
.rt-feedback-submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(50, 104, 213, .18), 0 12px 24px rgba(50, 104, 213, .22);
}

.rt-continue-button[disabled] {
    cursor: wait;
    opacity: .72;
}

.rt-private-feedback {
    margin-top: 2px;
}

.rt-feedback-prompt span {
    display: block;
    margin-bottom: 14px;
    color: #243754 !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.5;
}

.rt-feedback-textarea {
    width: 100%;
    min-height: 164px;
    padding: 14px 15px;
    border: 1px solid #d6e1ee;
    border-radius: 12px;
    background: #fbfdff;
    color: #15213a;
    font-size: 16px;
    line-height: 1.55;
    resize: vertical;
    box-shadow: none;
}

.rt-feedback-textarea:focus {
    outline: 0;
    border-color: #5f88df;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(50, 104, 213, .1);
}

.rt-feedback-privacy {
    margin: 9px 0 0;
    color: #77879b;
    font-size: 11px;
    line-height: 1.5;
}

.rt-feedback-actions {
    margin-top: 18px !important;
}

.rt-preview-banner {
    margin: -8px 0 22px;
    padding: 11px 13px;
    border: 1px solid #d9e6f5;
    border-radius: 11px;
    background: #f1f7ff;
    color: #48617f;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.rt-staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.rt-staff-grid a {
    color: #304764;
    text-decoration: none;
}

.rt-staff-option {
    width: 112px;
    padding: 10px;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    background: #f8fbff;
    text-align: center;
}

.rt-staff-option img {
    width: 78px;
    height: 78px;
    margin-bottom: 7px;
    object-fit: cover;
}

.rt-staff-name {
    font-size: 12px;
    font-weight: 700;
}

@keyframes rtConfirmIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
    .rt-rating-option:hover {
        border-color: #9db6db;
        background: #fff;
        transform: translateY(-1px);
    }
}

@media (max-width: 600px) {
    .rt-feedback-page {
        padding: 0;
    }

    .rt-feedback-shell {
        max-width: none;
    }

    .rt-feedback-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .rt-feedback-brand {
        padding: 22px 20px 17px;
    }

    .rt-feedback-content {
        padding: 25px 20px 32px;
    }

    .rt-feedback-question p {
        margin-bottom: 22px;
        font-size: 20px !important;
    }

    .rt-star-options {
        gap: 6px;
    }

    .rt-star-option {
        min-height: 64px;
        border-radius: 12px;
    }

    .rt-star-icon {
        font-size: clamp(29px, 10vw, 38px);
    }

    .rt-rating-fieldset[data-face-count="5"] .rt-face-option {
        flex-basis: 82px;
    }
}

@media (max-width: 350px) {
    .rt-feedback-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .rt-star-options {
        gap: 4px;
    }

    .rt-star-option {
        min-height: 60px;
        padding-right: 1px;
        padding-left: 1px;
    }

    .rt-face-options {
        gap: 7px;
    }

    .rt-face-option {
        flex-basis: 78px;
        min-height: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt-rating-option,
    .rt-star-icon,
    .rt-confirm-panel {
        animation: none;
        transition: none;
    }
}
