/* styles.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #e8f0f7; /* 부드러운 파란색 배경 */
}

#survey-container {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px; /* 최대 너비 설정 */
    position: relative;
    margin:1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#survey-container:hover {
    transform: translateY(-5px); /* 약간의 상승 효과 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* 더 강한 그림자 */
}

#company-name, #company-contact {
    min-height: 35px;
    margin-top: 0.3rem;
    padding: 10px;
    border-radius: 1rem;
    border: 1px solid #f3f7fd;
box-shadow: 0 10px 30px rgba(90, 144, 225, 0.1);
    width: 100%;
    max-width: 380px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#company-name:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.survey-step {
    display: none; /* 모든 단계는 기본적으로 숨김 */
    opacity: 0;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.survey-step.active {
    display: block; /* 활성화된 단계는 보이게 함 */
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-bar, .result-display {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #555;
}

button {
    margin-top: 15px;
    padding: 15px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    background-color: #004494;
}

@media (max-width: 500px) {
    #survey-container {
        width: 90%;
        padding: 20px;
    }

    button {
        font-size: 14px;
    }
}

@media (min-width: 501px) and (max-width: 768px) {
    #survey-container {
        width: 80%;
    }
}
.survey-step:not(#company-name-step) button:nth-child(4){
    background:white;
    border:3px solid #007bff;
    color: #007bff;
}
