/* styles.css - 화상영어 고객센터 스타일시트 */

/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #5B42F3;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header.with-back {
    justify-content: flex-start;
    padding: 15px 20px;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    line-height: 1;
}

/* 검색 영역 */
.search-wrapper {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 15px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #5B42F3;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* 빠른 선택 버튼 */
.quick-buttons {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 15px;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 998;
    border-bottom: 1px solid #f0f0f0;
    -webkit-overflow-scrolling: touch;
}

.quick-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn.active {
    background: #5B42F3;
    color: white;
}

/* 메인 콘텐츠 */
.main-content {
    margin-top: 170px;
    padding: 0 15px 20px;
}

/* 서비스 메뉴 */
.service-menu {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.service-card {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
    transition: all 0.2s;
}

.service-card:active .service-icon {
    background: #5B42F3;
    transform: scale(0.95);
}

.service-name {
    font-size: 12px;
    color: #666;
}

/* 섹션 스타일 */
.popular-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '🔥';
    margin-right: 8px;
}

/* 인기 질문 아이템 */
.popular-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:active {
    background: #f5f5f5;
}

.popular-question {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.popular-category {
    font-size: 12px;
    color: #999;
}

/* FAQ 아이템 */
.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-header {
    padding: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-header:active {
    background: #f5f5f5;
}

.faq-question {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    margin-right: 10px;
    line-height: 1.4;
}

.faq-arrow {
    font-size: 18px;
    color: #999;
    transition: transform 0.3s;
}

.faq-header.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.active {
    max-height: 500px;
}

.faq-answer {
    padding: 0 18px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.faq-actions {
    padding: 15px 18px;
    background: #f8f8f8;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.action-btn:active {
    background: #f5f5f5;
}

/* 폼 스타일 */
.form-container {
    padding: 70px 15px 30px;
    max-width: 600px;
    margin: 0 auto;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5B42F3;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:hover,
.checkbox-label:hover {
    background: #f8f8f8;
}

.radio-label input,
.checkbox-label input {
    margin-right: 10px;
}

.radio-label span,
.checkbox-label span {
    font-size: 15px;
    color: #333;
}

/* 알림 박스 */
.notice-box {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice-box.warning {
    background: #fff3e0;
}

.notice-icon {
    font-size: 20px;
    line-height: 1;
}

.notice-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.notice-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.form-notice {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.form-notice p {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: #5B42F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:active {
    background: #4832d3;
    transform: scale(0.98);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: #5B42F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* 플로팅 버튼 */
.contact-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #5B42F3;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(91, 66, 243, 0.3);
    cursor: pointer;
    font-size: 24px;
    z-index: 100;
    transition: all 0.2s;
}

.contact-float:active {
    transform: scale(0.95);
}

/* 기타 스타일 */
.highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* 반응형 */
@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-grid {
        max-width: 400px;
        margin: 15px auto 0;
    }
}

/* 추가 서비스 스타일 */
.additional-services {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-list {
    margin-top: 15px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:active {
    background: #f5f5f5;
    margin: 0 -20px;
    padding: 15px 20px;
}

.service-text {
    font-size: 15px;
}

.service-arrow {
    color: #999;
    font-size: 18px;
}

/* 수업 연장 페이지 스타일 */
.info-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.plan-card {
    position: relative;
    cursor: pointer;
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-content {
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.plan-card input[type="radio"]:checked + .plan-content {
    background: #5B42F3;
    color: white;
    border-color: #5B42F3;
}

.plan-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-duration {
    font-size: 14px;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 18px;
    font-weight: 700;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.price-summary {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.price-summary h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.price-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.price-detail.discount {
    color: #ff4757;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 기술 지원 페이지 스타일 */
.tech-support {
    padding-top: 70px;
}

.problem-selector {
    margin-bottom: 30px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.problem-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.problem-card:active {
    background: #5B42F3;
    color: white;
    border-color: #5B42F3;
}

.problem-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.problem-title {
    font-size: 14px;
    font-weight: 500;
}

.platform-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.platform-tabs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.platform-tab {
    flex: 1;
    padding: 12px;
    background: #f8f8f8;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-tab.active {
    background: #5B42F3;
    color: white;
}

.quick-help {
    margin-top: 30px;
}

.help-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.help-card h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.help-card ol {
    margin-left: 20px;
    line-height: 1.8;
    color: #666;
}

.remote-support {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.support-options {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.support-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.support-btn:active {
    border-color: #5B42F3;
    background: #f8f7ff;
}

.support-icon {
    font-size: 36px;
}

.support-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.support-text small {
    font-size: 13px;
    color: #666;
}

.tech-faq {
    margin-top: 30px;
}

/* 진도 확인 페이지 스타일 */
.progress-page {
    padding-top: 70px;
}

.student-selector {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.student-selector label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.student-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.progress-summary {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #5B42F3;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.weekly-schedule {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.schedule-list {
    margin-top: 15px;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f8f8;
}

.schedule-item.completed {
    opacity: 0.7;
}

.schedule-item.today {
    background: #e8f0fe;
    border: 2px solid #5B42F3;
}

.schedule-date {
    margin-right: 15px;
    text-align: center;
}

.schedule-date .day {
    font-size: 12px;
    color: #666;
}

.schedule-date .date {
    font-size: 16px;
    font-weight: 600;
}

.schedule-info {
    flex: 1;
}

.schedule-time {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.schedule-teacher {
    font-size: 14px;
    color: #666;
}

.schedule-status {
    margin-left: auto;
    font-size: 14px;
}

.textbook-progress {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.textbook-info {
    margin: 15px 0;
}

.textbook-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: #5B42F3;
    height: 100%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 14px;
    color: #666;
}

.unit-list {
    margin-top: 20px;
}

.unit-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.unit-item:last-child {
    border-bottom: none;
}

.unit-item.current {
    background: #fff3e0;
    margin: 0 -20px;
    padding: 12px 20px;
}

.unit-number {
    font-size: 14px;
    color: #666;
    width: 60px;
}

.unit-title {
    flex: 1;
    font-size: 15px;
}

.unit-status {
    font-size: 18px;
}

.recent-feedback {
    margin-bottom: 20px;
}

.feedback-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.feedback-date {
    font-size: 14px;
    color: #666;
}

.feedback-teacher {
    font-size: 14px;
    color: #5B42F3;
}

.feedback-section {
    margin-bottom: 15px;
}

.feedback-section:last-child {
    margin-bottom: 0;
}

.feedback-section strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.feedback-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.progress-actions {
    display: grid;
    gap: 10px;
}

.action-btn.primary {
    background: #5B42F3;
    color: white;
}

/* 형제/자매 등록 페이지 스타일 */
.benefit-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.benefit-icon {
    font-size: 48px;
}

.benefit-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.benefit-content p {
    font-size: 14px;
    margin: 5px 0;
}

.existing-student {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.option-card {
    margin-bottom: 15px;
}

.option-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: #5B42F3;
}

.option-label input {
    margin-right: 15px;
    margin-top: 3px;
}

.option-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.option-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.plan-comparison {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
}

.comparison-header {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.radio-label.recommended {
    background: #e8f0fe;
    border-color: #5B42F3;
}

.time-suggestion {
    background: #e8f0fe;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.time-suggestion p {
    font-size: 14px;
    margin: 5px 0;
}

.modal-note {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}