* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 스크린 리더 전용 (SEO용 H1) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.04em;
    color: #222;
    background: #1a1f3a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.survey-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 로고 */
.logo-container {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.logo {
    height: 180px;
    width: auto;
}


/* 진행 바 */
.progress-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 220px;
    z-index: 10;
    position: relative;
}

.step {
    width: 120px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.step.active {
    background: #ff6b35;
    color: #fff;
}

.step-number {
    display: block;
}

/* 설문조사 모달 */
.survey-modal {
    background: #fff;
    border-radius: 20px;
    padding: 60px 80px;
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 500px;
    margin-bottom: 20px;
}

.survey-step {
    display: none;
}

.survey-step.active {
    display: block;
}

.question {
    font-size: 24px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

/* STEP 1: 상품 유형 선택 */
.option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.option-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.option-card.selected {
    border: 3px solid #ff6b35;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rent-image {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/car/webp/rent.webp');
    background-size: cover;
    background-position: center;
}

.lease-image {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/car/webp/ris.webp');
    background-size: cover;
    background-position: center;
}

.card-label {
    position: absolute;
    bottom: 80px;
    left: 30px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    z-index: 2;
}

.select-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}

.select-btn:hover {
    background: #e55a2b;
}

/* STEP 2: 차량 입력 */
.step-header {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 40px;
}

.input-label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.vehicle-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    background: #f5f5f5;
    transition: all 0.3s;
}

.vehicle-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
}

.vehicle-input::placeholder {
    color: #999;
}

.next-step-btn {
    width: 100%;
    padding: 18px;
    background: #555;
    color: #ffd700;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.next-step-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

.next-step-btn:not(:disabled):hover {
    background: #666;
}

/* STEP 3: 핸드폰 번호 입력 */
.phone-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    background: #f5f5f5;
    transition: all 0.3s;
}

.phone-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
}

.phone-input::placeholder {
    color: #999;
}

/* STEP 4: 보증금 유형 */
.deposit-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.deposit-card {
    padding: 25px 30px;
    background: #f5f5f5;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.deposit-card:hover {
    background: #e0e0e0;
}

.deposit-card.selected {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

.deposit-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.deposit-input-wrapper {
    margin-top: 15px;
}

.deposit-amount-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s;
}

.deposit-card.selected .deposit-amount-input {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.deposit-card.selected .deposit-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.deposit-amount-input:focus {
    outline: none;
    border-color: #fff;
}

.deposit-amount-input::placeholder {
    color: #999;
}

/* 성함 입력 */
.name-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    background: #f5f5f5;
    transition: all 0.3s;
}

.name-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
}

.name-input::placeholder {
    color: #999;
}

/* 개인정보 동의 섹션 */
.privacy-consent-section {
    margin-top: 40px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.privacy-consent-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #ff6b35;
}

.privacy-consent-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    flex: 1;
    line-height: 1.5;
}

.consent-text {
    flex: 1;
}

.consent-link {
    color: #ff6b35;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.consent-link:hover {
    color: #e55a2b;
}

/* STEP 5: 완료 화면 */
.completion-logo {
    text-align: center;
    margin-bottom: 40px;
}

.completion-logo-img {
    height: 80px;
    width: auto;
}

.completion-message {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.6;
}

.completion-submessage {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

/* 버튼 공통 스타일 */
.next-btn {
    padding: 15px 40px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 30px auto 0;
}

.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.next-btn:not(:disabled):hover {
    background: #e55a2b;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-body {
    line-height: 1.8;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.modal-body table th,
.modal-body table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.modal-body table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* 완료 모달 스타일 */
.completion-modal-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
}

.completion-modal-close {
    z-index: 10;
}

.completion-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-logo {
    margin-bottom: 30px;
}

.completion-logo-img {
    height: 80px;
    width: auto;
}

.completion-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.completion-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.completion-submessage {
    font-size: 16px;
    color: #999;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

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

.completion-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #fff;
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.completion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b 0%, #ff6b35 100%);
}

.completion-btn:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .survey-container {
        max-width: 100%;
    }

    .logo-container {
        top: 20px;
    }

    .logo {
        height: 120px;
    }

    .survey-modal {
        padding: 30px 20px;
        max-width: 100%;
        margin-bottom: 150px;
    }

    .progress-bar {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 20px;
        margin-top: 150px;
    }

    .step {
        width: 60px;
        height: 35px;
        font-size: 11px;
    }

    .step-header {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .question {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .option-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .option-card {
        height: 250px;
    }

    .card-label {
        font-size: 24px;
        bottom: 60px;
        left: 20px;
    }

    .select-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .input-group {
        margin-bottom: 25px;
    }

    .input-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .vehicle-input,
    .phone-input {
        padding: 12px 18px;
        font-size: 14px;
    }

    .next-step-btn {
        padding: 15px;
        font-size: 16px;
        margin-top: 15px;
    }

    .deposit-options {
        gap: 15px;
    }

    .deposit-card {
        padding: 20px;
    }

    .deposit-label {
        font-size: 18px;
    }

    .deposit-amount-input {
        padding: 10px 18px;
        font-size: 14px;
    }

    .completion-logo-img {
        height: 60px;
    }

    .completion-message {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .completion-submessage {
        font-size: 16px;
    }

}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .logo-container {
        top: 15px;
    }

    .logo {
        height: 100px;
    }

    .survey-modal {
        padding: 25px 15px;
        margin-bottom: 120px;
        border-radius: 15px;
    }

    .progress-bar {
        gap: 5px;
        margin-bottom: 15px;
        margin-top: 120px;
    }

    .step {
        width: 50px;
        height: 30px;
        font-size: 10px;
    }

    .step-header {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .question {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .option-card {
        height: 220px;
    }

    .card-label {
        font-size: 20px;
        bottom: 50px;
        left: 15px;
    }

    .select-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .input-label {
        font-size: 13px;
    }

    .vehicle-input,
    .phone-input {
        padding: 10px 15px;
        font-size: 13px;
    }

    .next-step-btn {
        padding: 12px;
        font-size: 14px;
    }

    .deposit-card {
        padding: 15px;
    }

    .deposit-label {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .deposit-amount-input {
        padding: 8px 15px;
        font-size: 13px;
    }

    .completion-logo-img {
        height: 50px;
        margin-bottom: 25px;
    }

    .completion-message {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .completion-submessage {
        font-size: 14px;
    }

    .vehicle-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .vehicle-item {
        padding: 12px 15px;
        font-size: 14px;
    }
}

