/* 결과 팝업에서의 스타일 (기존 스타일 복원 및 재설계) */
:root {
    --survey-primary: #0b7135;
    --survey-primary-light: #f4f0ff;
    --survey-bg: #fafafa;
    --survey-border: #f0f0f0;
}

.survey-popup {
    padding: 0
}

.results-view .survey-result {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border: none;
    color: #333;
}

.results-view .survey-chart {
    display: flex;
}

.survey-top {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.survey-head-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.survey-profile {
    width: 14rem;
    height: 14rem;
    border-radius: 10px;
    /* background: var(--survey-bg); */
    background: #f3f8f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.survey-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.survey-profile svg {
    width: 8rem;
    height: 8rem;
    stroke-width: 2px;
    color: var(--survey-primary);
}

.survey-info {
    flex: 1;
}

.survey-desc {
    font-size: 1.8rem;
    color: var(--survey-primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.survey-title {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
}

.survey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.survey-tag {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555;
    background: var(--survey-bg);
    padding: .5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--survey-border)
}

.survey-summary {
    background: var(--survey-bg);
    border: 1px solid var(--survey-border);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    display: none;
}

.survey-sum-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.survey-sum-text {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.5;
    word-break: keep-all;
}

.survey-mid {
    width: 100%;
    display: flex;
    gap: 20px;
}

.survey-sec {
    flex: 1;
    border: 1px solid var(--survey-border);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.survey-sec-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.survey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: .5rem;
    background: var(--survey-bg);
    border-radius: 12px;
    margin-right: 1rem;
    color: var(--survey-primary);
}

.survey-icon svg {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 3px;
}

/* Scores Section */
.survey-scores {
    width: 100%;
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(2, 1fr);
}

.survey-item {
    width: 100%;
}

.survey-item-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.survey-label {
    font-weight: 700;
    color: #333;
}

.survey-val {
    color: #777;
    font-weight: 500;
    font-size: 1.3rem;
}

.survey-bar-bg {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.survey-bar-fill {
    height: 100%;
    background: var(--survey-primary);
    border-radius: 4px;
}

.survey-str-box {
    margin-top: 20px;
    background: var(--survey-bg);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    flex: 1;
}

.survey-str-title {
    font-size: 1.5rem;
    color: var(--survey-primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-str-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

/* Chart Section */
.survey-chart {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto 0;
}

/* Companies Section */
.survey-com-sec {
    max-width: 280px;
}

.survey-com-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.survey-com-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.survey-com-list .survey-com-item:not(:first-child) {
    border-top: 1px solid var(--survey-border);
}

.survey-com-item img {
    width: 40%;
    aspect-ratio: 3/2;
    object-fit: contain;
}

.survey-com-item dl {
    font-size: 1.4rem;
}

.survey-com-item dl>dt {
    font-weight: 700;
    margin-bottom: .5rem;
}

.survey-com-item dl>dd {
    letter-spacing: -0.05em;
}


.survey-btn-apply {
    margin-top: auto;
    width: 100%;
    background: var(--survey-primary);
    color: #fff;
    border: none;
    padding: 1.2rem;
    border-radius: 5px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.survey-btn-apply:hover {
    opacity: 0.9;
}

/* Footer */
.survey-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--survey-border);
    display: none;
}

.survey-foot-text {
    font-size: 1.3rem;
    color: #777;
}

.survey-foot-btns {
    display: flex;
    gap: 10px;
}

.survey-btn-retest {
    background: #fff;
    border: 1px solid var(--survey-border);
    color: #555;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

.survey-btn-retest:hover {
    background: var(--survey-bg);
}

.survey-btn-save {
    background: var(--survey-primary);
    border: 1px solid var(--survey-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.survey-btn-save:hover {
    opacity: 0.9;
}

#radarChart {
    width: 100% !important;
}

/* Survey Popup Styles Overhaul */
.survey-container {
    position: relative;
    padding: 4rem;
}

.survey-header {
    margin-bottom: 4rem;
    text-align: center;
}

.survey-progress {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.survey-progress-bar {
    height: 100%;
    background: var(--green-color);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-info {
    font-size: 1.4rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.02em;
}

.survey-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.survey-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3faf4;
    color: var(--green-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: 800;
    border: 1px solid rgba(11, 113, 53, 0.1);
}

.survey-question {
    font-size: 3.4rem;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
    word-break: keep-all;
}

.survey-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.survey-answer-btn {
    min-height: 14rem;
    padding: 2rem;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: keep-all;
    line-height: 1.4;
    transition: all 0.2s;
}

.survey-answer-btn:hover {
    background: #f3faf4;
    border-color: var(--green-color);
    color: var(--green-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(11, 113, 53, 0.08);
}

/* Decorations */
.survey-deco {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.6;
}

.deco-confetti-1 {
    width: 30px;
    height: 30px;
    left: 40px;
    top: 40%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%239be0a1" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" rx="4" transform="rotate(15)"/></svg>');
}

.deco-confetti-2 {
    width: 25px;
    height: 25px;
    right: 50px;
    bottom: 20%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%239be0a1" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" rx="4" transform="rotate(-20)"/></svg>');
}

.deco-sparkle {
    width: 40px;
    height: 40px;
    right: 30px;
    top: 45%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23ffcf4d" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"/></svg>');
}

/* Results View Adjustments */

.survey-popup.results-view .survey-header,
.survey-popup.results-view .survey-badge-container,
.survey-popup.results-view .survey-deco {
    display: none;
}