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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.form-container {
    background: white;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 상단 이미지 영역 */
.image-section {
    width: 100%;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.image-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 10px;
}

.image-placeholder img {
    width: 100%;
}

.image-placeholder span {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.image-placeholder small {
    font-size: 14px;
    opacity: 0.8;
}

/* 동의사항 영역 */
.agreement-section {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.agreement-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.toggle-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    padding: 0;
}
.toggle-btn::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transform: translateY(-50%);
}
.toggle-btn.active::after {
    transform: translateY(-50%) rotate(180deg);
}
.agreement-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* 폼 영역 */
form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: #999;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* 필수 필드 표시 */
label[for*="name"]::after,
label[for*="phone"]::after,
label[for*="email"]::after,
label[for*="is_member"]::after,
label[for*="funnels"]::after,
label[for*="item"]::after,
label[for*="reason"]::after {
    content: " *";
    color: #e74c3c;
}

/* 버튼 영역 */
.form-buttons {
    margin-top: 30px;
    padding: 0 20px 20px 20px;
}

.btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 에러 상태 */
.error {
    border-color: #e74c3c !important;
    background: #fdf2f2 !important;
}

/* 성공 상태 */
.success {
    border-color: #27ae60 !important;
    background: #d5f4e6 !important;
}

/* 로딩 상태 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* .form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; } */

/* 데스크톱 반응형 (선택사항) */
@media (min-width: 768px) {
    .container {
        max-width: 700px;
        margin: 20px auto;
    }
    
    .form-container {
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    .image-placeholder {
    }
    
    .agreement-section {
        padding: 30px;
    }
    
    form {
        padding: 30px;
    }
    
    .form-buttons {
        padding: 0 30px 10px 30px;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 다크모드 지원 (선택사항) */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
    }
    
    .form-container {
        background: #2d2d2d;
        color: #fff;
    }
    
    .agreement-section {
        background: #333;
    }
    
    .checkbox-item {
        background: #2d2d2d;
        border-color: #444;
    }
    
    input, select, textarea {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    label {
        color: #fff;
    }
} 