:root {
    --miray-orange: #f37021;
    --miray-orange-dark: #d85f16;
    --miray-ink: #1f1f1f;
    --miray-muted: #8a8a8a;
    --miray-line: #ececec;
    --miray-shadow: 0 8px 24px rgba(31, 31, 31, 0.08);
    --font: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    color: var(--miray-ink);
    background: #fff;
}

.text-miray { color: var(--miray-orange) !important; }

.brand-mark {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--miray-orange);
    line-height: 1.1;
}

.brand-line,
.brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #7a7a7a;
    letter-spacing: 0.08em;
}

.btn-miray {
    background: var(--miray-orange);
    border-color: var(--miray-orange);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.25);
    transition: transform .15s ease, background .15s ease;
}
.btn-miray:hover,
.btn-miray:focus {
    background: var(--miray-orange-dark);
    border-color: var(--miray-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* Admin */
.admin-body {
    background:
        radial-gradient(circle at top right, rgba(243,112,33,.08), transparent 40%),
        linear-gradient(180deg, #f7f7f8 0%, #ffffff 100%);
    min-height: 100vh;
}

.admin-nav {
    background: #1f1f1f;
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.admin-nav .navbar-brand { color: #fff; display: flex; flex-direction: column; line-height: 1.1; }
.admin-nav .brand-mark { color: var(--miray-orange); font-size: 1.1rem; }
.admin-nav .brand-sub { color: #bbb; font-size: .7rem; }
.admin-nav .nav-link { color: #ddd !important; }
.admin-nav .nav-link.active,
.admin-nav .nav-link:hover { color: #fff !important; }
.admin-nav .navbar-text { color: #ccc; }
.admin-nav .navbar-toggler { border-color: #555; }
.admin-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.stat-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--miray-shadow);
    padding: 1.1rem 1.2rem;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    height: 100%;
}
.stat-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(243,112,33,.12);
    color: var(--miray-orange);
    font-size: 1.15rem;
}
.stat-value { font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.stat-label { color: var(--miray-muted); font-size: .85rem; }
.small-break { font-size: 1rem; word-break: break-all; }

.survey-admin-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--miray-shadow);
    padding: 1.25rem;
}

.q-num {
    width: 34px; height: 34px; min-width: 34px;
    border-radius: 50%;
    background: var(--miray-orange);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: .9rem;
}

.question-editor .form-control { border-radius: 12px; }

.answer-type-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.type-option {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    margin: 0;
    background: #fafafa;
    transition: all .15s ease;
}
.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.type-option.is-selected {
    background: rgba(243,112,33,.12);
    border-color: var(--miray-orange);
    color: var(--miray-orange);
}
.type-option.is-locked {
    cursor: default;
    pointer-events: none;
}
.company-question-hint input[readonly] {
    background: #f7f7f8;
    color: #555;
    font-weight: 600;
}

.login-card, .install-card { border-radius: 22px; }

.dist-row {
    display: grid;
    grid-template-columns: 52px 1fr 72px;
    gap: .55rem;
    align-items: center;
    margin-bottom: .4rem;
    font-size: .85rem;
}
.dist-label { color: var(--miray-orange); font-weight: 600; }
.dist-bar {
    height: 8px;
    background: #f1f1f1;
    border-radius: 999px;
    overflow: hidden;
}
.dist-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--miray-orange), #ff9a57);
    border-radius: 999px;
}
.dist-count { text-align: right; color: #777; }

.choice-dist-row { grid-template-columns: minmax(90px, 1.4fr) 1fr 72px; }
.choice-dist-label {
    color: var(--miray-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.choice-options-box {
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    padding: .75rem .85rem;
}
.choice-options-input {
    border-radius: 10px;
    font-size: .9rem;
}

.choice-answer-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(243,112,33,.1);
    border: 1px solid rgba(243,112,33,.25);
    border-radius: 999px;
    padding: .4rem .95rem;
    font-weight: 600;
}

/* Public survey - design match */
.survey-body {
    min-height: 100vh;
    background:
        url("data:image/svg+xml,%3Csvg width='420' height='220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 180 C80 120, 140 200, 220 150 S360 80, 420 140' fill='none' stroke='%23ececec' stroke-width='2'/%3E%3Cpath d='M0 200 C100 150, 180 210, 260 170 S380 120, 420 170' fill='none' stroke='%23f2f2f2' stroke-width='2'/%3E%3C/svg%3E") left bottom / 420px no-repeat,
        url("data:image/svg+xml,%3Csvg width='420' height='220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 140 C70 90, 150 170, 240 120 S360 60, 420 110' fill='none' stroke='%23ececec' stroke-width='2'/%3E%3Cpath d='M0 170 C90 120, 170 190, 260 145 S380 90, 420 140' fill='none' stroke='%23f2f2f2' stroke-width='2'/%3E%3C/svg%3E") right bottom / 420px no-repeat,
        #fff;
}

.survey-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.2rem 1.1rem 3rem;
}

.survey-mascot {
    text-align: center;
    margin: -.6rem 0 .4rem;
}
.survey-mascot img {
    width: 100%;
    max-width: 225px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.survey-hero h1 {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin: 1.1rem 0 .35rem;
}

.survey-subtitle {
    color: var(--miray-muted);
    font-weight: 500;
    margin-bottom: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .92rem;
}

/* HTML yazılmış alt açıklama */
.survey-desc-html {
    max-width: 640px;
    margin: 0 auto 1.1rem;
    text-align: left;
    color: var(--miray-ink);
    font-size: .95rem;
    line-height: 1.65;
}
.survey-desc-html > *:first-child { margin-top: 0; }
.survey-desc-html > *:last-child { margin-bottom: 0; }
.survey-desc-html h1,
.survey-desc-html h2,
.survey-desc-html h3,
.survey-desc-html h4,
.survey-desc-html h5,
.survey-desc-html h6 {
    font-weight: 800;
    line-height: 1.25;
    margin: 1.1rem 0 .5rem;
}
.survey-desc-html h1 { font-size: 1.4rem; }
.survey-desc-html h2 { font-size: 1.25rem; }
.survey-desc-html h3 { font-size: 1.1rem; }
.survey-desc-html h4,
.survey-desc-html h5,
.survey-desc-html h6 { font-size: 1rem; }
.survey-desc-html p { margin: 0 0 .7rem; }
.survey-desc-html ul,
.survey-desc-html ol { margin: 0 0 .7rem; padding-left: 1.3rem; }
.survey-desc-html li { margin-bottom: .25rem; }
.survey-desc-html a { color: var(--miray-orange); }
.survey-desc-html img { max-width: 100%; height: auto; border-radius: 10px; }
.survey-desc-html hr { border: 0; border-top: 1px solid #e6e6e6; margin: 1rem 0; }
.survey-desc-html blockquote {
    margin: 0 0 .7rem;
    padding: .6rem .9rem;
    border-left: 3px solid var(--miray-orange);
    background: #fafafa;
    border-radius: 0 10px 10px 0;
}
.survey-desc-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 .7rem;
    font-size: .9rem;
}
.survey-desc-html th,
.survey-desc-html td {
    border: 1px solid #e6e6e6;
    padding: .45rem .6rem;
    text-align: left;
}
.survey-desc-html th { background: #fafafa; font-weight: 700; }

/* "Diğer" temada açıklama: daha dar ve satırları sık */
.survey-desc-compact {
    max-width: 470px;
    margin-left: auto;
    margin-right: auto;
    font-size: .86rem;
    line-height: 1.35;
    margin-bottom: .8rem;
}
.survey-desc-compact p,
.survey-desc-compact ul,
.survey-desc-compact ol,
.survey-desc-compact blockquote,
.survey-desc-compact table { margin-bottom: .4rem; }
.survey-desc-compact li { margin-bottom: .1rem; }
.survey-desc-compact h1,
.survey-desc-compact h2,
.survey-desc-compact h3,
.survey-desc-compact h4,
.survey-desc-compact h5,
.survey-desc-compact h6 {
    margin: .6rem 0 .25rem;
    line-height: 1.2;
}
.survey-desc-compact h1 { font-size: 1.15rem; }
.survey-desc-compact h2 { font-size: 1.06rem; }
.survey-desc-compact h3 { font-size: 1rem; }
.survey-desc-compact h4,
.survey-desc-compact h5,
.survey-desc-compact h6 { font-size: .93rem; }
.survey-desc-compact hr { margin: .6rem 0; }
.survey-desc-compact > *:first-child { margin-top: 0; }
.survey-desc-compact > *:last-child { margin-bottom: 0; }

@media (max-width: 576px) {
    .survey-desc-compact { max-width: 100%; font-size: .84rem; }
}

/* "Diğer" temada satır araları daha dar */
.survey-wrap-compact .question-card {
    padding: .7rem .85rem;
    margin-bottom: .5rem;
    border-radius: 13px;
    gap: .7rem;
}
.survey-wrap-compact .q-text { font-size: .89rem; line-height: 1.3; }
.survey-wrap-compact .q-num {
    width: 27px; height: 27px; min-width: 27px;
    font-size: .78rem;
}
.survey-wrap-compact .q-left { gap: .6rem; }
.survey-wrap-compact .question-card[data-type="company"] .q-left {
    padding-left: calc(27px + .6rem);
}
.survey-wrap-compact .company-q-text { font-size: .96rem; }
.survey-wrap-compact .text-answer-wrap { margin-top: .25rem; }
.survey-wrap-compact .text-answer-input,
.survey-wrap-compact .company-name-input { min-height: 40px; }
.survey-wrap-compact .choice-wrap { margin-top: .5rem; gap: .35rem; }
.survey-wrap-compact .choice-option { padding: .45rem .35rem; gap: .22rem; }
.survey-wrap-compact .star-btn { font-size: 1.5rem; }
.survey-wrap-compact .comment-block { margin-top: .8rem; padding: .85rem .95rem; }
.survey-wrap-compact .kvkk-block { margin-top: .8rem; padding: .75rem .9rem; }

.optional-note {
    text-align: center;
    font-size: .8rem;
    color: #8a8a8a;
    margin: 0 0 .6rem;
}
.optional-note i { color: var(--miray-orange); margin-right: .25rem; }

/* Panel: firma ismi ayar kutusu */
.company-settings-box {
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    padding: .75rem .85rem;
}

/* Panel: zorunluluk anahtarı */
.required-toggle { display: block; }
.req-switch {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    margin: 0;
    font-size: .82rem;
    color: #6f6f6f;
    user-select: none;
}
.req-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.req-track {
    width: 36px;
    height: 20px;
    min-width: 36px;
    border-radius: 999px;
    background: #d8d8d8;
    position: relative;
    transition: background .15s ease;
}
.req-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.req-switch input:checked + .req-track { background: var(--miray-orange); }
.req-switch input:checked + .req-track::after { transform: translateX(16px); }
.req-switch input:checked ~ .req-text { color: var(--miray-ink); }
.req-switch input:focus-visible + .req-track {
    box-shadow: 0 0 0 .2rem rgba(243,112,33,.25);
}
.req-text strong { font-weight: 700; }

/* Ankette zorunlu alan yıldızı */
.req-star {
    color: #dc3545;
    margin-left: .2rem;
    font-weight: 700;
}

/* KVKK onay bloğu */
.kvkk-block {
    margin-top: 1.1rem;
    border: 1px solid #e6e6e6;
    background: #fbfbfb;
    border-radius: 14px;
    padding: .9rem 1rem;
}
.kvkk-block.kvkk-error {
    border-color: #dc3545;
    background: rgba(220,53,69,.05);
}
.kvkk-details summary {
    cursor: pointer;
    font-weight: 700;
    font-size: .88rem;
    color: var(--miray-orange);
    list-style: none;
}
.kvkk-details summary::-webkit-details-marker { display: none; }
.kvkk-details summary::after {
    content: " ▾";
    font-size: .75rem;
}
.kvkk-details[open] summary::after { content: " ▴"; }
.kvkk-text {
    margin-top: .6rem;
    max-height: 220px;
    overflow-y: auto;
    font-size: .82rem;
    line-height: 1.45;
    color: #555;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: .7rem .8rem;
}
.kvkk-text p { margin: 0 0 .5rem; }
.kvkk-text > *:last-child { margin-bottom: 0; }
.kvkk-text h1, .kvkk-text h2, .kvkk-text h3,
.kvkk-text h4, .kvkk-text h5, .kvkk-text h6 {
    font-size: .92rem;
    font-weight: 800;
    margin: .5rem 0 .3rem;
}
.kvkk-text ul, .kvkk-text ol { margin: 0 0 .5rem; padding-left: 1.2rem; }
.kvkk-text a { color: var(--miray-orange); }

.kvkk-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: .75rem 0 0;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
}
.kvkk-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.kvkk-box {
    width: 21px;
    height: 21px;
    min-width: 21px;
    margin-top: .05rem;
    border: 2px solid #c9c9c9;
    border-radius: 6px;
    background: #fff;
    position: relative;
    transition: border-color .15s ease, background .15s ease;
}
.kvkk-check:hover .kvkk-box { border-color: var(--miray-orange); }
.kvkk-check input:checked + .kvkk-box {
    border-color: var(--miray-orange);
    background: var(--miray-orange);
}
.kvkk-check input:checked + .kvkk-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.kvkk-check input:focus-visible + .kvkk-box {
    box-shadow: 0 0 0 .2rem rgba(243,112,33,.25);
}

/* Panel: KVKK örnek taslak */
.kvkk-sample {
    background: #f7f7f7;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: .6rem .7rem;
    font-size: .74rem;
    line-height: 1.45;
    white-space: pre-wrap;
    color: #555;
    max-height: 200px;
    overflow: auto;
}

/* Panel: HTML yardım kutusu */
.html-help {
    font-size: .82rem;
    color: #6f6f6f;
}
.html-help summary {
    cursor: pointer;
    color: var(--miray-orange);
    font-weight: 600;
}
.html-help code {
    background: #f5f5f5;
    padding: .1rem .3rem;
    border-radius: 4px;
    color: #b8471c;
    word-break: break-all;
}
.html-desc-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
    line-height: 1.5;
}

/* Uzun açıklamalar normal paragraf gibi görünsün */
.survey-subtitle-long {
    text-transform: none;
    letter-spacing: normal;
    font-size: .95rem;
    line-height: 1.6;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.survey-company {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .35rem 0 .55rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(243,112,33,.1);
    color: var(--miray-orange);
    font-weight: 700;
    font-size: .92rem;
}

.survey-logo {
    margin: .1rem 0 1rem;
}
.survey-logo img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: inline-block;
}

.survey-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin-bottom: .35rem;
}
.survey-title-row h1 {
    margin: 0;
}

/* Yönetim panelinde hâlâ kullanılıyor */
.survey-logo-row {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}

.g-badge {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800;
    color: #fff;
    background: conic-gradient(from 210deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335);
    box-shadow: 0 6px 16px rgba(66,133,244,.25);
    position: relative;
}
.g-badge::after {
    content: "G";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.hero-rule {
    width: 72px;
    height: 3px;
    background: var(--miray-orange);
    margin: 0 auto 1.6rem;
    border-radius: 999px;
}

.question-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--miray-shadow);
    border: 1px solid rgba(0,0,0,.03);
    padding: 1rem 1.1rem;
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: rise .45s ease both;
}

.question-card:nth-child(1) { animation-delay: .02s; }
.question-card:nth-child(2) { animation-delay: .05s; }
.question-card:nth-child(3) { animation-delay: .08s; }
.question-card:nth-child(4) { animation-delay: .11s; }
.question-card:nth-child(5) { animation-delay: .14s; }
.question-card:nth-child(6) { animation-delay: .17s; }
.question-card:nth-child(7) { animation-delay: .2s; }

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

.q-left {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
}

.q-text {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.35;
}

/* Numarasız ilk soru, numaralı soruların metniyle aynı hizada dursun */
.question-card[data-type="company"] .q-left {
    padding-left: calc(34px + .8rem);
}

/* Panel: anket teması seçimi */
.brand-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.brand-option {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    border: 1px solid #e0e0e0;
    background: #fbfbfb;
    border-radius: 12px;
    padding: .85rem .9rem;
    cursor: pointer;
    margin: 0;
    transition: border-color .15s ease, background .15s ease;
}
.brand-option:hover { border-color: var(--miray-orange); background: #fff; }
.brand-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.brand-option-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--miray-ink);
}
.brand-option-desc {
    font-size: .78rem;
    color: #7a7a7a;
    line-height: 1.35;
}
.brand-option:has(input:checked),
.brand-option.is-selected {
    border-color: var(--miray-orange);
    background: rgba(243,112,33,.08);
}
.brand-option:has(input:checked) .brand-option-title,
.brand-option.is-selected .brand-option-title {
    color: var(--miray-orange);
}
.no-questions-note {
    background: #fafafa;
    border: 1px dashed #dcdcdc;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    color: #6f6f6f;
    font-size: .88rem;
    line-height: 1.5;
}
.no-questions-note i { color: var(--miray-orange); margin-right: .35rem; }

.brand-name-box {
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    padding: .75rem .85rem;
}
@media (max-width: 576px) {
    .brand-picker { grid-template-columns: 1fr; }
}

/* Markasız (sade) anket başlığı */
.survey-hero-plain {
    padding-top: 1.6rem;
}
.survey-brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .04em;
    color: var(--miray-orange);
    margin-bottom: .4rem;
}

/* Şirket ismi sorusu dikkat çeksin */
.company-q-text {
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: .03em;
    color: var(--miray-orange);
}
.question-card[data-type="company"] {
    border: 1px solid rgba(243,112,33,.35);
    background: rgba(243,112,33,.04);
}

.star-rating {
    display: flex;
    gap: .22rem;
    flex-shrink: 0;
}

.star-btn {
    border: 0;
    background: transparent;
    color: var(--miray-orange);
    font-size: 1.75rem;
    line-height: 1;
    padding: .12rem;
    cursor: pointer;
    transition: transform .12s ease, color .12s ease;
}
.star-btn:hover,
.star-btn.is-active {
    transform: scale(1.12);
}
.star-btn.is-active i,
.star-btn.is-hover i {
    font-weight: 900;
}
.star-btn.is-active i::before,
.star-btn.is-hover i::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f005";
}

.question-card-choice {
    flex-direction: column;
    align-items: stretch;
}
.question-card-choice .q-left {
    width: 100%;
}
/* Şıklar üçerli ızgara halinde yan yana dizilir */
.choice-wrap {
    width: 100%;
    margin-top: .7rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
}
/* 2 ve 4 şıkta üçerli dizilim boşluk bıraktığı için ikişerli olur */
.choice-wrap[data-count="2"],
.choice-wrap[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
}
.choice-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: .3rem;
    border: 1px solid #e3e3e3;
    background: #fbfbfb;
    border-radius: 12px;
    padding: .6rem .4rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .8rem;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
    transition: border-color .15s ease, background .15s ease;
}
.choice-option:hover {
    border-color: var(--miray-orange);
    background: #fff;
}
.choice-option .choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice-dot {
    width: 17px;
    height: 17px;
    min-width: 17px;
    border-radius: 50%;
    border: 2px solid #cfcfcf;
    display: inline-block;
    position: relative;
    transition: border-color .15s ease;
}
.choice-option:has(.choice-input:checked),
.choice-option.is-picked {
    border-color: var(--miray-orange);
    background: rgba(243,112,33,.08);
}
.choice-option:has(.choice-input:checked) .choice-dot,
.choice-option.is-picked .choice-dot {
    border-color: var(--miray-orange);
}
.choice-option:has(.choice-input:checked) .choice-dot::after,
.choice-option.is-picked .choice-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--miray-orange);
}
.choice-option:has(.choice-input:focus-visible) {
    box-shadow: 0 0 0 .2rem rgba(243,112,33,.2);
}

.question-card-text {
    flex-direction: column;
    align-items: stretch;
}
.question-card-text .q-left {
    width: 100%;
}
.text-answer-wrap {
    width: 100%;
    margin-top: .35rem;
}
.text-answer-input {
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    min-height: 46px;
    font-weight: 500;
}
.text-answer-input:focus {
    border-color: var(--miray-orange);
    box-shadow: 0 0 0 .2rem rgba(243,112,33,.15);
}
.company-name-input {
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    min-height: 48px;
    font-weight: 600;
}
.company-name-input:focus {
    border-color: var(--miray-orange);
    box-shadow: 0 0 0 .2rem rgba(243,112,33,.15);
}

.company-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
}
.company-question-hint {
    opacity: .92;
}

.text-answers-list {
    max-height: 280px;
    overflow: auto;
}
.text-answer-item {
    border-top: 1px solid #f0f0f0;
    padding: .65rem 0;
}
.text-answer-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.response-table thead th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #777;
    background: #fafafa;
    border-bottom-width: 1px;
}
.response-no {
    font-weight: 800;
    color: var(--miray-orange);
}
.response-detail-row {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}
.response-detail-row:last-child {
    border-bottom: 0;
}
.response-text-box {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: .75rem 1rem;
}

.comment-block {
    margin-top: 1.5rem;
}
.comment-title {
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.comment-title i {
    color: var(--miray-orange);
    font-size: 1.2rem;
}
.comment-area {
    border-radius: 14px;
    border: 1px solid #dcdcdc;
    min-height: 120px;
    padding: 1rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
}
.comment-area:focus {
    border-color: var(--miray-orange);
    box-shadow: 0 0 0 .2rem rgba(243,112,33,.15);
}

.thanks-box {
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--miray-shadow);
    padding: 2.5rem 1.5rem;
    margin-top: 1rem;
}
.thanks-icon {
    font-size: 3rem;
    color: var(--miray-orange);
    margin-bottom: .5rem;
}

.survey-footer {
    margin-top: 2.5rem;
    color: #aaa;
}

.home-survey-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--miray-shadow);
    border: 1px solid rgba(0,0,0,.03);
    padding: 1.2rem 1.25rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.home-survey-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(31,31,31,.12);
    color: inherit;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .question-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .star-rating { align-self: flex-end; }
    .dist-row { grid-template-columns: 44px 1fr 64px; }
    .choice-dist-row { grid-template-columns: minmax(80px, 1.2fr) 1fr 62px; }
    .survey-wrap { padding-top: 1.2rem; }
    .survey-mascot { margin: 0 0 .2rem; }
    .survey-mascot img { max-width: 195px; }
    .survey-logo { margin: .1rem 0 .8rem; }
    .survey-logo img { max-width: 215px; }
    .survey-title-row { gap: .55rem; }
}

@media (max-width: 380px) {
    .survey-mascot img { max-width: 170px; }
    .star-btn { font-size: 1.55rem; }
    .survey-logo img { max-width: 185px; }
    .g-badge { width: 34px; height: 34px; }
    .choice-option { font-size: .74rem; padding: .5rem .3rem; }
    .question-card[data-type="company"] .q-left { padding-left: calc(30px + .6rem); }
    .company-q-text { font-size: .98rem; }
    .choice-dot { width: 15px; height: 15px; min-width: 15px; }
}
