:root {
    --primary-color: #FF9F43; /* 부드러운 웜 오렌지 */
    --primary-hover: #FF8C00;
    --bg-color: #FDFBF7; /* 따뜻한 크림색 배경 */
    --card-bg: #ffffff;
    --text-color: #4A4A4A; /* 너무 진하지 않은 다크 그레이 */
    --border-color: #E0E0E0;
    --radius: 16px; /* 더 둥근 모서리 */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 부드러운 그림자 */
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center; /* 수직 중앙 정렬 추가 */
    min-height: 100vh;

}

.container {
    width: 100%;
    max-width: 500px; /* 폭을 조금 줄여서 더 집중도 있게 */
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;

}

h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 헤더 스타일 개선 */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header p {
    color: #888;
    font-size: 0.9rem;
}

/* Progress Bar 개선 */
.progress-container {
    width: 100%;
    background-color: #F0F0F0;
    border-radius: 20px;
    height: 6px;
    margin-top: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #FFC078); /* 그라데이션 적용 */
    width: 33%;
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* 부드러운 가속도 */
}

/* Form Section & Animation */
.form-section {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Input Styles - 트렌디하게 */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent; /* 테두리 대신 배경색 활용 */
    background-color: #F7F7F7;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.1); /* 포커스 링 효과 */
    transform: translateY(-2px);
}

/* Profile Upload */
.profile-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preview-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 2rem;
    color: #ccc;
}

.upload-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.upload-btn:hover {
    background-color: #f9f9f9;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Intro Section */
.intro-section {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease-out;
}

.badge {
    display: inline-block;
    background-color: #FFF3E0;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.intro-section h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.intro-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.benefit-box {
    background-color: #F8F9FA;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid #eee;
}

.benefit-box h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-box ul {
    list-style: none;
    padding: 0;
}

.benefit-box li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.benefit-box li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.benefit-box strong {
    color: var(--primary-color);
    font-weight: 700;
}

.start-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), #FF8C00);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.start-btn:active {
    transform: translateY(-1px);
}

/* 카테고리 스타일 */
.category-title {
    font-size: 1rem;
    color: #888;
    margin: 24px 0 12px 0;
    font-weight: 600;
}

.category-title:first-of-type {
    margin-top: 0;
}

/* 잘 모르겠어요 카드 강조 (선택사항) */
.unknown-card {
    background-color: #F8F9FA;
    border-style: dashed;
    border-color: #ddd;
}

.hidden-input:checked + .unknown-card {
    border-style: solid;
    background-color: #E3F2FD; /* 약간 다른 색상으로 구분 */
    border-color: #2196F3;
    color: #2196F3;
}

.hidden-input:checked + .unknown-card .text {
    color: #2196F3;
}

.hidden-input:checked + .unknown-card::after {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

/* 라디오 & 체크박스 그룹 스타일 - 카드형 */
.hidden-input {
    display: none;
}

.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.selection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.selection-card .icon {
    font-size: 2rem;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.selection-card .text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    transition: color 0.2s ease;
}

.selection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.selection-card:hover .icon {
    transform: scale(1.1);
}

/* Checked State */
.hidden-input:checked + .selection-card {
    border-color: var(--primary-color);
    background-color: #FFF8F0;
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.2);
}

.hidden-input:checked + .selection-card .text {
    color: var(--primary-color);
    font-weight: 700;
}

/* 체크 표시 아이콘 (선택사항) */
.hidden-input:checked + .selection-card::after {
    content: '✔';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(255, 159, 67, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
}

.nav-btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.primary, .nav-btn.submit {
    background: linear-gradient(135deg, var(--primary-color), #FF8C00);
    color: white;
    flex: 1;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.nav-btn.primary:hover, .nav-btn.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

.nav-btn.primary:active, .nav-btn.submit:active {
    transform: translateY(0);
}

.nav-btn.secondary {
    background-color: #F0F0F0;
    color: #777;
    flex: 0.4;
}

.nav-btn.secondary:hover {
    background-color: #E0E0E0;
    color: #333;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Readonly Input Style */
input[readonly] {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: transparent;
}

input[readonly]:focus {
    box-shadow: none;
    transform: none;
    border-color: transparent;
}

.age-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.age-inputs input {
    width: 80px;
}

textarea {
    resize: vertical;
}

.description {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    margin-top: -10px;
}

.hidden {
    display: none !important;
}

/* 감사 페이지 스타일 */
.coupon-display {
    background-color: #fff;
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.coupon-title {
    font-weight: 700;
    color: #333;
}

.coupon-code-box {
    background-color: #FFF3E0;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.action-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.full-width {
    width: 100%;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.modal p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.close-modal:hover {
    color: #333;
}

/* Privacy Checkbox Style */
.privacy-agreement {
    display: flex;
    align-items: center;
     flex-direction: column;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    margin-bottom: 0; /* Reset global label margin */
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
    background-color: #fff;
}

.checkbox-label input:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.label-text {
    font-size: 0.95rem;
    color: #555;
}

.detail-link {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px;
}

.detail-link:hover {
    color: #666;
}

.text-left {
    text-align: left;
}

.privacy-content {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.privacy-content p {
    margin-bottom: 10px;
}

/* 반응형 */
@media (max-width: 480px) {

    
    header h1 {
        font-size: 1.5rem;
    }
}
/* Accordion Styles */
.pet-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.pet-card-header {
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.pet-card-title {
    font-size: 1rem;
}

.pet-card-body {
    padding: 20px;
    display: none; /* Hidden by default */
    border-top: 1px solid var(--border-color);
}

.pet-card.expanded .pet-card-body {
    display: block;
}

.pet-card.expanded .toggle-btn {
    transform: rotate(180deg);
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}


/* Secondary Button Style */
.secondary-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    background-color: #fff5eb; /* Very light orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.2);
}

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


/* Pet Card Actions */
.pet-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-pet-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 5px;
}

.delete-pet-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Danger Button for Modal */
.nav-btn.danger {
    background-color: #e74c3c;
    color: white;
    border: none;
}

.nav-btn.danger:hover {
    background-color: #c0392b;
}

