/**
 * Travelwing AI Quote - Frontend Styles
 * 시니어 친화적 / 모바일 최적화 / 카카오톡 공유 최적화
 */

:root {
    --twaq-primary: #1e40af;
    --twaq-primary-light: #3b82f6;
    --twaq-primary-dark: #1e3a8a;
    --twaq-secondary: #64748b;
    --twaq-success: #10b981;
    --twaq-success-light: #d1fae5;
    --twaq-warning: #f59e0b;
    --twaq-warning-light: #fef3c7;
    --twaq-danger: #ef4444;
    --twaq-danger-light: #fee2e2;
    --twaq-gray-50: #f8fafc;
    --twaq-gray-100: #f1f5f9;
    --twaq-gray-200: #e2e8f0;
    --twaq-gray-300: #cbd5e1;
    --twaq-gray-500: #64748b;
    --twaq-gray-700: #334155;
    --twaq-gray-900: #0f172a;
    --twaq-radius: 16px;
    --twaq-radius-sm: 12px;
    --twaq-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --twaq-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   기본 레이아웃
   ============================================ */

* {
    box-sizing: border-box;
}

.twaq-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--twaq-gray-900);
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   견적 요청 폼 - 시니어 친화적
   ============================================ */

.twaq-form {
    background: #fff;
    border-radius: var(--twaq-radius);
    box-shadow: var(--twaq-shadow);
    overflow: hidden;
}

.twaq-form-header {
    background: linear-gradient(135deg, var(--twaq-primary) 0%, var(--twaq-primary-dark) 100%);
    color: #fff;
    padding: 28px 24px;
    text-align: center;
}

.twaq-form-header h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
}

.twaq-form-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.twaq-form-body {
    padding: 24px;
}

.twaq-form-section {
    margin-bottom: 28px;
}

.twaq-form-section:last-child {
    margin-bottom: 0;
}

.twaq-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--twaq-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--twaq-primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.twaq-section-title .icon {
    font-size: 24px;
}

/* 입력 필드 - 큰 사이즈 */
.twaq-field {
    margin-bottom: 20px;
}

.twaq-field:last-child {
    margin-bottom: 0;
}

.twaq-field label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--twaq-gray-700);
    margin-bottom: 8px;
}

.twaq-field label .required {
    color: var(--twaq-danger);
    margin-left: 4px;
}

.twaq-field input[type="text"],
.twaq-field input[type="email"],
.twaq-field input[type="tel"],
.twaq-field input[type="number"],
.twaq-field input[type="date"],
.twaq-field select,
.twaq-field textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 18px;
    border: 2px solid var(--twaq-gray-200);
    border-radius: var(--twaq-radius-sm);
    background: #fff;
    color: var(--twaq-gray-900);
    transition: all 0.2s;
    -webkit-appearance: none;
}

.twaq-field input:focus,
.twaq-field select:focus,
.twaq-field textarea:focus {
    outline: none;
    border-color: var(--twaq-primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.twaq-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 50px;
}

.twaq-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* 날짜 입력 그룹 */
.twaq-date-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 인원 입력 - 스테퍼 */
.twaq-people-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.twaq-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--twaq-gray-50);
    border-radius: var(--twaq-radius-sm);
    border: 2px solid var(--twaq-gray-200);
}

.twaq-stepper-label {
    font-size: 17px;
    font-weight: 500;
    color: var(--twaq-gray-700);
}

.twaq-stepper-label small {
    display: block;
    font-size: 13px;
    color: var(--twaq-gray-500);
    font-weight: 400;
}

.twaq-stepper-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twaq-stepper-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--twaq-primary);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.twaq-stepper-btn:hover {
    background: var(--twaq-primary-dark);
    transform: scale(1.05);
}

.twaq-stepper-btn:active {
    transform: scale(0.95);
}

.twaq-stepper-btn:disabled {
    background: var(--twaq-gray-300);
    cursor: not-allowed;
    transform: none;
}

.twaq-stepper-value {
    font-size: 24px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    color: var(--twaq-gray-900);
}

/* 옵션 카드 선택 */
.twaq-option-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.twaq-option-cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.twaq-option-card {
    position: relative;
    padding: 16px;
    border: 3px solid var(--twaq-gray-200);
    border-radius: var(--twaq-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.twaq-option-card:hover {
    border-color: var(--twaq-primary-light);
    background: var(--twaq-gray-50);
}

.twaq-option-card.selected {
    border-color: var(--twaq-primary);
    background: rgba(30, 64, 175, 0.05);
}

.twaq-option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--twaq-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twaq-option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.twaq-option-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.twaq-option-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--twaq-gray-900);
}

.twaq-option-desc {
    font-size: 13px;
    color: var(--twaq-gray-500);
    margin-top: 4px;
}

/* 제출 버튼 */
.twaq-submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--twaq-primary) 0%, var(--twaq-primary-dark) 100%);
    border: none;
    border-radius: var(--twaq-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
}

.twaq-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

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

.twaq-submit-btn:disabled {
    background: var(--twaq-gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.twaq-submit-btn .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   견적서 보기 - 카톡 공유 최적화
   ============================================ */

.twaq-quote-page {
    background: var(--twaq-gray-100);
    min-height: 100vh;
    padding: 0;
}

.twaq-quote-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* 헤더 */
.twaq-quote-header {
    background: linear-gradient(135deg, var(--twaq-primary) 0%, var(--twaq-primary-dark) 100%);
    color: #fff;
    padding: 32px 20px;
    text-align: center;
    position: relative;
}

.twaq-quote-header .company-name {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.twaq-quote-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.twaq-quote-header .destination {
    font-size: 18px;
    opacity: 0.95;
}

.twaq-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-top: 16px;
}

/* 요약 카드 */
.twaq-summary-card {
    margin: -20px 16px 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--twaq-radius);
    box-shadow: var(--twaq-shadow-lg);
    position: relative;
    z-index: 10;
}

.twaq-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.twaq-summary-item {
    text-align: center;
    padding: 12px;
    background: var(--twaq-gray-50);
    border-radius: var(--twaq-radius-sm);
}

.twaq-summary-item .label {
    font-size: 13px;
    color: var(--twaq-gray-500);
    margin-bottom: 4px;
}

.twaq-summary-item .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--twaq-gray-900);
}

.twaq-summary-item.highlight {
    background: linear-gradient(135deg, var(--twaq-warning-light) 0%, #fde68a 100%);
    grid-column: span 2;
}

.twaq-summary-item.highlight .label {
    color: #92400e;
}

.twaq-summary-item.highlight .value {
    font-size: 32px;
    color: #92400e;
}

/* 섹션 */
.twaq-quote-section {
    padding: 20px 16px;
    border-bottom: 8px solid var(--twaq-gray-100);
}

.twaq-quote-section:last-child {
    border-bottom: none;
}

.twaq-quote-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--twaq-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 항목 리스트 */
.twaq-item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twaq-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: var(--twaq-gray-50);
    border-radius: var(--twaq-radius-sm);
}

.twaq-item-info {
    flex: 1;
}

.twaq-item-category {
    font-size: 12px;
    color: var(--twaq-gray-500);
    margin-bottom: 2px;
}

.twaq-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--twaq-gray-900);
}

.twaq-item-detail {
    font-size: 14px;
    color: var(--twaq-gray-500);
    margin-top: 4px;
}

.twaq-item-price {
    text-align: right;
}

.twaq-item-price .amount {
    font-size: 17px;
    font-weight: 700;
    color: var(--twaq-gray-900);
}

.twaq-item-price .unit {
    font-size: 12px;
    color: var(--twaq-gray-500);
}

/* 일정표 */
.twaq-itinerary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.twaq-day-card {
    background: var(--twaq-gray-50);
    border-radius: var(--twaq-radius-sm);
    overflow: hidden;
}

.twaq-day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--twaq-primary);
    color: #fff;
}

.twaq-day-number {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.twaq-day-info {
    flex: 1;
}

.twaq-day-title {
    font-size: 16px;
    font-weight: 600;
}

.twaq-day-date {
    font-size: 13px;
    opacity: 0.8;
}

.twaq-day-content {
    padding: 16px;
}

.twaq-day-activity {
    font-size: 16px;
    color: var(--twaq-gray-700);
    margin-bottom: 12px;
}

.twaq-day-meals {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.twaq-meal-tag {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--twaq-gray-200);
    border-radius: 20px;
    font-size: 13px;
    color: var(--twaq-gray-600);
}

/* AI 생성 일정 상세 */
.twaq-day-schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.twaq-schedule-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.twaq-time-label {
    min-width: 60px;
    font-size: 13px;
    font-weight: 600;
    color: var(--twaq-primary);
}

.twaq-schedule-desc {
    flex: 1;
    font-size: 14px;
    color: var(--twaq-gray-700);
    line-height: 1.5;
}

.twaq-day-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.twaq-highlight-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

/* AI 추천 섹션 */
.twaq-recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twaq-rec-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--twaq-gray-50);
    border-radius: var(--twaq-radius-sm);
    border: 1px solid var(--twaq-gray-200);
}

.twaq-rec-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.twaq-rec-content {
    flex: 1;
}

.twaq-rec-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--twaq-gray-900);
    margin-bottom: 4px;
}

.twaq-rec-desc {
    font-size: 13px;
    color: var(--twaq-gray-500);
    line-height: 1.5;
}

/* AI 생성 배지 */
.twaq-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 포함/불포함 */
.twaq-includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.twaq-includes-box {
    padding: 16px;
    border-radius: var(--twaq-radius-sm);
}

.twaq-includes-box.included {
    background: var(--twaq-success-light);
}

.twaq-includes-box.excluded {
    background: var(--twaq-gray-100);
}

.twaq-includes-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.twaq-includes-box.included h4 {
    color: var(--twaq-success);
}

.twaq-includes-box.excluded h4 {
    color: var(--twaq-gray-500);
}

.twaq-includes-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.twaq-includes-box li {
    font-size: 14px;
    color: var(--twaq-gray-700);
    padding: 4px 0;
}

/* ============================================
   액션 버튼 - 고정 하단 바
   ============================================ */

.twaq-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.twaq-action-bar + .twaq-spacer {
    height: 100px;
}

.twaq-btn {
    flex: 1;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: var(--twaq-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.twaq-btn-primary {
    background: linear-gradient(135deg, var(--twaq-primary) 0%, var(--twaq-primary-dark) 100%);
    color: #fff;
}

.twaq-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.twaq-btn-success {
    background: linear-gradient(135deg, var(--twaq-success) 0%, #059669 100%);
    color: #fff;
}

.twaq-btn-success:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.twaq-btn-outline {
    background: #fff;
    color: var(--twaq-gray-700);
    border: 2px solid var(--twaq-gray-300);
}

.twaq-btn-outline:hover {
    border-color: var(--twaq-primary);
    color: var(--twaq-primary);
}

.twaq-btn-kakao {
    background: #FEE500;
    color: #000;
}

.twaq-btn-kakao:hover {
    background: #F5DC00;
}

/* ============================================
   수정 요청 모달
   ============================================ */

.twaq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.twaq-modal-overlay.active {
    display: flex;
}

.twaq-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--twaq-radius) var(--twaq-radius) 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.twaq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--twaq-gray-200);
}

.twaq-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.twaq-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--twaq-gray-100);
    border-radius: 50%;
    font-size: 24px;
    color: var(--twaq-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twaq-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.twaq-modal-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--twaq-gray-200);
    display: flex;
    gap: 10px;
}

/* 빠른 수정 옵션 */
.twaq-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.twaq-quick-option {
    padding: 10px 16px;
    background: var(--twaq-gray-100);
    border: 2px solid var(--twaq-gray-200);
    border-radius: 20px;
    font-size: 14px;
    color: var(--twaq-gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.twaq-quick-option:hover,
.twaq-quick-option.selected {
    background: var(--twaq-primary);
    border-color: var(--twaq-primary);
    color: #fff;
}

/* ============================================
   메시지/대화
   ============================================ */

.twaq-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--twaq-gray-50);
    border-radius: var(--twaq-radius-sm);
    max-height: 300px;
    overflow-y: auto;
}

.twaq-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.twaq-message.customer {
    align-self: flex-end;
    background: var(--twaq-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.twaq-message.admin {
    align-self: flex-start;
    background: #fff;
    color: var(--twaq-gray-900);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.twaq-message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============================================
   성공/확인 화면
   ============================================ */

.twaq-success-screen {
    text-align: center;
    padding: 60px 20px;
}

.twaq-success-icon {
    width: 100px;
    height: 100px;
    background: var(--twaq-success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 24px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.twaq-success-screen h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--twaq-gray-900);
    margin: 0 0 12px 0;
}

.twaq-success-screen p {
    font-size: 16px;
    color: var(--twaq-gray-500);
    margin: 0 0 24px 0;
}

/* ============================================
   내 견적 목록
   ============================================ */

.twaq-my-quotes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.twaq-quote-card {
    background: #fff;
    border-radius: var(--twaq-radius);
    box-shadow: var(--twaq-shadow);
    overflow: hidden;
    transition: all 0.2s;
}

.twaq-quote-card:hover {
    box-shadow: var(--twaq-shadow-lg);
}

.twaq-quote-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--twaq-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.twaq-quote-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--twaq-gray-900);
}

.twaq-quote-card-body {
    padding: 16px;
}

.twaq-quote-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.twaq-quote-card-info-item {
    font-size: 14px;
}

.twaq-quote-card-info-item .label {
    color: var(--twaq-gray-500);
}

.twaq-quote-card-info-item .value {
    font-weight: 600;
    color: var(--twaq-gray-900);
}

.twaq-quote-card-price {
    text-align: center;
    padding: 16px;
    background: var(--twaq-warning-light);
    border-radius: var(--twaq-radius-sm);
}

.twaq-quote-card-price .label {
    font-size: 13px;
    color: #92400e;
}

.twaq-quote-card-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: #92400e;
}

.twaq-quote-card-footer {
    padding: 12px 16px;
    background: var(--twaq-gray-50);
    display: flex;
    gap: 8px;
}

.twaq-quote-card-footer .twaq-btn {
    padding: 12px 16px;
    font-size: 14px;
}

/* ============================================
   로딩/에러 상태
   ============================================ */

.twaq-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.twaq-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--twaq-gray-200);
    border-top-color: var(--twaq-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.twaq-loading-text {
    font-size: 16px;
    color: var(--twaq-gray-500);
}

.twaq-error {
    text-align: center;
    padding: 40px 20px;
    background: var(--twaq-danger-light);
    border-radius: var(--twaq-radius);
}

.twaq-error-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.twaq-error-text {
    font-size: 16px;
    color: var(--twaq-danger);
}

/* ============================================
   토스트 알림
   ============================================ */

.twaq-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--twaq-gray-900);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--twaq-radius-sm);
    font-size: 15px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s;
    max-width: calc(100vw - 40px);
    text-align: center;
}

.twaq-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.twaq-toast.success {
    background: var(--twaq-success);
}

.twaq-toast.error {
    background: var(--twaq-danger);
}

/* ============================================
   반응형
   ============================================ */

@media (min-width: 768px) {
    .twaq-container {
        max-width: 700px;
        padding: 24px;
    }
    
    .twaq-form-body {
        padding: 32px;
    }
    
    .twaq-option-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .twaq-action-bar {
        position: static;
        box-shadow: none;
        padding: 20px;
        background: transparent;
    }
    
    .twaq-modal {
        border-radius: var(--twaq-radius);
        margin: auto;
    }
}

@media (min-width: 1024px) {
    .twaq-container {
        max-width: 800px;
        padding: 32px;
    }
    
    .twaq-form {
        border-radius: 24px;
    }
    
    .twaq-form-header {
        padding: 36px 32px;
    }
    
    .twaq-form-header h2 {
        font-size: 30px;
    }
    
    .twaq-form-body {
        padding: 40px;
    }
    
    .twaq-field label {
        font-size: 18px;
    }
    
    .twaq-field input,
    .twaq-field select,
    .twaq-field textarea {
        font-size: 17px;
        padding: 16px 18px;
    }
}

/* 작은 화면 추가 조정 */
@media (max-width: 360px) {
    .twaq-container {
        padding: 12px;
    }
    
    .twaq-form-header h2 {
        font-size: 22px;
    }
    
    .twaq-stepper-btn {
        width: 40px;
        height: 40px;
    }
    
    .twaq-option-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   PC/태블릿 반응형 - 견적서 넓게
   ============================================ */

/* 태블릿 (768px 이상) */
@media (min-width: 768px) {
    .twaq-quote-container {
        max-width: 680px;
        margin: 20px auto;
        border-radius: 20px;
        box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
        min-height: auto;
    }
    
    .twaq-quote-page {
        padding: 20px;
    }
    
    .twaq-quote-header {
        padding: 40px 32px;
        border-radius: 20px 20px 0 0;
    }
    
    .twaq-quote-header h1 {
        font-size: 32px;
    }
    
    .twaq-summary-card {
        margin: -24px 24px 24px;
        padding: 28px;
    }
    
    .twaq-summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .twaq-quote-section {
        padding: 24px;
    }
    
    .twaq-action-bar {
        position: relative;
        border-radius: 0 0 20px 20px;
        margin: 0;
    }
    
    .twaq-spacer {
        display: none;
    }
}

/* PC (1024px 이상) */
@media (min-width: 1024px) {
    .twaq-quote-container {
        max-width: 800px;
        margin: 40px auto;
    }
    
    .twaq-quote-page {
        padding: 40px;
    }
    
    .twaq-quote-header {
        padding: 48px 40px;
    }
    
    .twaq-quote-header h1 {
        font-size: 36px;
    }
    
    .twaq-quote-header .destination {
        font-size: 20px;
    }
    
    .twaq-summary-card {
        margin: -28px 32px 28px;
        padding: 32px;
    }
    
    .twaq-quote-section {
        padding: 28px 32px;
    }
    
    .twaq-quote-table th,
    .twaq-quote-table td {
        padding: 16px 12px;
        font-size: 16px;
    }
    
    .twaq-includes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .twaq-blockchain-info {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* 대형 PC (1280px 이상) */
@media (min-width: 1280px) {
    .twaq-quote-container {
        max-width: 900px;
    }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .twaq-quote-page {
        background: var(--twaq-gray-900);
    }
    
    .twaq-quote-container {
        background: var(--twaq-gray-900);
    }
}

/* 접근성 - 고대비 */
@media (prefers-contrast: high) {
    .twaq-btn {
        border: 2px solid currentColor;
    }
    
    .twaq-option-card {
        border-width: 3px;
    }
}

/* 애니메이션 줄이기 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
