@charset "utf-8";

.survey-section {
    margin: auto 0;
    font-size: 1.2rem;
}
.survey-section__title {
    color: #001514;
    font-weight: 900;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 0.5em;
}
.survey-section__subtitle {
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 1.5em;
}

.survey-step {
    margin-top: 3em;
}
.survey-step__title {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 0.1em;
    padding: 0.3em 0;
}
.survey-step__remarks {
    font-size: 0.9em;
    text-align: center;
    color: #666;
    margin-bottom: 1.5em;
}

.survey-error {
    margin-top: 0.75rem;
    color: #e44a3a;
    font-weight: 600;
}

.survey-alert {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.survey-alert--info {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #2f3a56;
}
.survey-alert--success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #1b5e20;
}
.survey-alert--warning {
    background: rgba(255, 145, 102, 0.12);
    border: 1px solid rgba(255, 145, 102, 0.32);
    color: #7e3d22;
}

.survey-question {
    background-color: #f4f4f4;
    margin: 1.5em auto;
    padding: 2em 2em 3em 2em;
    border-radius: 0; border-left: 0; transition: none;
}
.survey-question__number {
    background-color: #001514;
    border-radius: 0 1em 1em 0;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    display: inline-block;
    margin: 0 0.5em 0.5em -1em;
    padding: 0.1em 1em;
    vertical-align: middle;
}
.survey-question__text {
    color: #001514;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5em;
    display: inline;
}

.survey-options {
    display: grid;
    gap: 0.5em;
    margin-bottom: 1em;
}
.survey-option {
    background: #fff;
    padding: 0.75em 0.5em 0.75em 1.7em;
    margin-left: 1.2em;
    border: 2px solid #ddd;
    /*border-radius: 0.5em;*/
    position: relative;
}
.survey-option::before {
    color: #fff;
    font-size: 1.5em;
    font-weight: 900;
    line-height: 1.6;
    width: 1.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% - 0.8em); left: -1em;
}
.survey-option--a::before {
    content: "A";
    background-color: #ee6352;
}
.survey-option--b::before {
    content: "B";
    background-color: #65abd5;
}

.survey-scale {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
}
.survey-scale__label {
    font-weight: 700;
    line-height: 1.3;
    font-size: 0.95em;
}
.survey-scale__label--left {
    color: #ee6352;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
}
.survey-scale__label--right {
    color: #65abd5;
    text-align: right;
    grid-column: 2;
    grid-row: 1;
}

.survey-scale__radio-group {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: 90%;
    margin: 0 auto;
    grid-column: 1 / 3;
    grid-row: 2;
    position: relative;
}
.survey-scale__radio-group::before,
.survey-scale__radio-group::after {
    content: "";
    position: absolute;
    bottom: -20px;
    height: 2px;
    background: linear-gradient(to var(--arrow-direction), transparent, #999);
    width: calc(50% - 20px);
}
.survey-scale__radio-group::before {
    --arrow-direction: left;
    left: 0;
    background: linear-gradient(to left, transparent, #ee6352);
}
.survey-scale__radio-group::after {
    --arrow-direction: right;
    right: 0;
    background: linear-gradient(to right, transparent, #65abd5);
}
.survey-scale__arrows {
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.survey-scale__arrows::before,
.survey-scale__arrows::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
}
.survey-scale__arrows::before {
    border-width: 5px 8px 5px 0;
    border-color: transparent #ee6352 transparent transparent;
}
.survey-scale__arrows::after {
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #65abd5;
}
.survey-radio {
    border-radius: 4px;
    display: block;
    cursor: pointer;
    position: relative;
    width: min(12vw, 55px);
    flex: 1;
    transition: transform 0.1s ease;
}
.survey-radio:hover {
    transform: translateY(-2px);
}
.survey-radio:active {
    transform: translateY(0);
}
.survey-radio input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.survey-radio__control {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 2px solid #b2c1c4;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    position: relative;
}
.survey-radio__control::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 16px;
    border: solid #ccc;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 1;
    transition: all 0.2s ease;
}
.survey-radio:hover .survey-radio__control {
    border-color: #29a88c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.survey-radio input[type="radio"]:focus-visible + .survey-radio__control {
    box-shadow: 0 0 0 4px rgba(41, 168, 140, 0.2);
    border-color: #29a88c;
}
.survey-radio input[type="radio"]:checked + .survey-radio__control {
    background-color: #29a88c;
    border-color: #29a88c;
    box-shadow: 0 4px 12px rgba(41, 168, 140, 0.3);
}
.survey-radio input[type="radio"]:checked + .survey-radio__control::after {
    opacity: 1;
    border-color: #fff;
}
.survey-radio__value {
    display: none;
}

.survey-submit {
  text-align: center;
  margin-top: 2em;
}

.survey-complete-message {
    text-align: center;
    padding: 1.5em 1em;
    background: #eefffb;;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #15886f;
    margin-bottom: 2rem;
    font-weight: 600;
}

@media screen and (min-width: 688px) {
    .survey-section { font-size: 1.5rem; }
    .survey-question { padding: 2em 2em 3em 2em; }
    .survey-question__number { margin-left: -2em; padding-left: 2em; }
    .survey-options { margin-bottom: 1.5em; }
    .survey-option { margin-left: 0; padding-left: 3.5em; }
    .survey-option::before { height: 100%; top: 0; left: 0; }
    
    .survey-step__title { font-size: 1.5em; padding: 0.35em 0; }
    .survey-step__remarks { font-size: 1em; }
    
    .survey-scale__label { font-size: 0.95em; }
    .survey-radio__control { 
        width: 50px;
        height: 50px; 
        border-radius: 50%;
        border-width: 3px;
    }
    .survey-radio__control::after {
        width: 12px;
        height: 20px;
        border-width: 0 4px 4px 0;
    }
}
