/* ==========================================================================
   IMAP Studio - Muted Mint & Soft Dusty Pink Boutique Design System
   ========================================================================== */

:root {
  /* Muted Mint & Dusty Pink Palette */
  --bg-main: #F7FAF8;              /* Soft airy light tint */
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-paper: #FFFFFF;

  /* Primary: Muted Sage Mint */
  --primary: #4A7C72;
  --primary-hover: #3C665D;
  --primary-light: #EDF5F2;
  --primary-border: #D1E3DC;
  --primary-glow: rgba(74, 124, 114, 0.2);

  /* Secondary: Soft Dusty Pink / Blush */
  --pink-accent: #D99B95;
  --pink-hover: #C58882;
  --pink-light: #FAF1F0;
  --pink-border: #F0D4D1;
  --pink-glow: rgba(217, 155, 149, 0.22);

  /* Neutral & Text */
  --text-main: #233330;            /* Deep slate sage charcoal */
  --text-muted: #5E736E;           /* Muted taupe sage */
  --text-subtle: #8FA39E;

  --border-color: #E2ECE7;
  --border-active: #4A7C72;

  --shadow-sm: 0 2px 6px rgba(35, 51, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 51, 48, 0.06);
  --shadow-lg: 0 16px 40px rgba(35, 51, 48, 0.08);
  --shadow-float: 0 24px 48px -12px rgba(74, 124, 114, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

/* Background Atmosphere */
.app-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-blur-image {
  position: absolute;
  inset: 0;
  background-image: url('imap_studio_hero.jpg?v=restore1');
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(1.05);
  opacity: 0.14;
  transform: scale(1.1);
}

.pastel-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.glow-mint {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #D8ECE5 0%, #C4E2D8 100%);
  top: -120px;
  left: -100px;
}

.glow-pink {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #FDEBE8 0%, #F8DAD6 100%);
  bottom: -130px;
  right: -90px;
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.06); }
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 18px 70px;
}

/* IMAP Studio Header */
.studio-header {
  text-align: center;
  margin-bottom: 14px;
}

.studio-brand {
  margin-bottom: 10px;
}

.brand-curation {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 2.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1A2825;
  line-height: 1.1;
  margin-bottom: 2px;
}

.brand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 3px auto 5px;
  max-width: 200px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #CBDCD6, transparent);
}

.divider-gem {
  color: var(--pink-accent);
  font-size: 0.72rem;
}

.brand-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

/* Studio Hero Visual Card */
.studio-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 236, 231, 0.9);
  aspect-ratio: 24 / 9;
  max-height: 185px;
  background: #E8F0EC;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.studio-hero-card:hover .hero-img {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 40, 37, 0.08) 0%, rgba(26, 40, 37, 0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 18px;
  color: #FFFFFF;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: fit-content;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A7F3D0;
  box-shadow: 0 0 6px #A7F3D0;
}

.hero-message {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Main Card */
.booking-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg), var(--shadow-float);
  padding: 34px 30px;
  margin-top: 18px;
}

/* Streamlined Form */
.streamlined-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-sans);
  box-shadow: 0 2px 6px var(--primary-glow);
  flex-shrink: 0;
}

.req {
  color: var(--pink-accent);
  font-weight: 700;
}

.section-guide-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: -2px;
  margin-bottom: 4px;
}

/* 1. Inquiry Type Selector (Cards) */
.inquiry-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.type-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--bg-paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card:hover {
  border-color: #BCD7CE;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.type-card.selected {
  border-color: var(--primary);
  background: #F4FAF8;
  box-shadow: 0 0 0 1px var(--primary);
}

.card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.type-icon {
  font-size: 1.5rem;
}

.type-text {
  display: flex;
  flex-direction: column;
}

.type-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.type-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.check-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #CBDCD6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: transparent;
  transition: all 0.2s;
}

.type-card.selected .check-mark {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Sub-Category Chip Panels */
.sub-category-panel {
  display: none;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
  animation: fadeIn 0.25s ease;
}

.sub-category-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sub-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.sub-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-chip {
  background: #FFFFFF;
  border: 1px solid #D2E2DC;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #374E49;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.sub-chip:hover {
  background: #F8FDFB;
  border-color: var(--primary);
  color: var(--primary);
}

.sub-chip.selected {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* 2. Calendar & Time Wrapper */
.calendar-and-time-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  background: #F6FAF8;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: 4px;
}

.calendar-box {
  display: flex;
  flex-direction: column;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: #E4EFEA;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
}

.current-month-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.calendar-nav {
  display: flex;
  gap: 6px;
}

.nav-btn {
  background: #FFFFFF;
  border: 1px solid #CBDCD6;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A635E;
  transition: all 0.15s;
}

.nav-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.calendar-table {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #79918B;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F7F4;
}

.weekdays .sun { color: #D06868; }
.weekdays .sat { color: #5D83A6; }

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 6px;
}

.day-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.day-cell.sun { color: #D06868; }
.day-cell.sat { color: #5D83A6; }

.day-cell:hover:not(.disabled) {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  font-weight: 700;
}

.day-cell.today {
  border-color: var(--primary-border);
}

.day-cell.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.day-cell.selected {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.day-cell.selected::after {
  background: #FFFFFF;
}

.day-cell.disabled {
  opacity: 0.28;
  color: var(--text-subtle);
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-legend {
  display: flex;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-left: 2px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.available { background: var(--primary); }
.dot.selected { background: var(--primary); }
.dot.disabled { background: #CBDCD6; }

/* Time Box */
.time-box {
  display: flex;
  flex-direction: column;
}

.time-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.time-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.selected-date-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 2px;
}

.slot-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374E49;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.slot-btn:hover:not(.booked) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.slot-btn.selected {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.slot-btn.booked {
  background: #F1F6F4;
  color: var(--text-subtle);
  border-color: transparent;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.6;
}

.no-slots-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  padding: 40px 10px;
  line-height: 1.6;
}

/* Inputs & Form Groups */
.form-input, .form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 114, 0.14);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.error-msg {
  color: #D06868;
  font-size: 0.8rem;
  display: none;
  margin-top: 4px;
}

/* Contact Method Selector (Kakao / Phone) */
.contact-method-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.method-chip {
  border: 1.5px solid var(--border-color);
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.method-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-chip:hover {
  border-color: #BCD7CE;
}

.method-chip.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.method-icon {
  font-size: 1.2rem;
}

.method-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

/* 7. Review Card Before Submit */
.review-section {
  background: #F6FAF8;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 10px;
}

.review-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.review-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.review-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFFFFF;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.88rem;
}

.review-row .r-label {
  color: var(--text-muted);
  min-width: 80px;
}

.review-row .r-val {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-all;
}

.review-row .r-val.highlight {
  color: var(--primary);
  font-weight: 700;
}

.review-row.notes-row {
  flex-direction: column;
  gap: 4px;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

.review-row .note-val {
  text-align: left;
  font-weight: normal;
  color: #374E49;
  font-size: 0.84rem;
  background: #F6FAF8;
  padding: 8px 10px;
  border-radius: 6px;
  width: 100%;
}

/* Notice Box in Soft Dusty Pink Tint */
.notice-box {
  display: flex;
  gap: 10px;
  background: var(--pink-light);
  border: 1px solid var(--pink-border);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #8C524C;
  margin-top: 14px;
  line-height: 1.5;
}

.notice-icon {
  font-size: 1rem;
}

/* Submit Button */
.btn-submit {
  margin-top: 16px;
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px var(--primary-glow);
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Complete View */
.complete-container {
  text-align: center;
  padding: 10px 0;
}

.checkmark-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.checkmark-circle::before {
  content: '✓';
  font-size: 34px;
  color: var(--primary);
  font-weight: 800;
}

.complete-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.complete-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ticket-card {
  max-width: 440px;
  margin: 0 auto 28px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  text-align: left;
  overflow: hidden;
}

.ticket-header {
  background: #243531;
  color: #FFF;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.ticket-id {
  font-size: 0.8rem;
  color: #BDD1CB;
}

.ticket-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.ticket-row .t-label {
  color: var(--text-muted);
}

.ticket-row .t-value {
  font-weight: 600;
  color: var(--text-main);
}

.ticket-row .t-value.highlight {
  color: var(--primary);
  font-weight: 700;
}

.ticket-status-pill {
  margin-top: 6px;
  background: var(--pink-light);
  color: #8C524C;
  border: 1px solid var(--pink-border);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-accent);
}

.ticket-footer {
  background: #F6FAF8;
  padding: 10px 20px;
  border-top: 1px dashed #CBDCD6;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-kakao {
  background: var(--kakao-yellow);
  color: var(--kakao-black);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(254, 229, 0, 0.35);
}

.btn-kakao:hover {
  background: var(--kakao-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: #FFFFFF;
  border-color: #CBDCD6;
  color: #374E49;
}

.btn-outline:hover {
  background: #F6FAF8;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
}

.btn-text:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Admin Styles */
.admin-bar {
  text-align: center;
  margin-top: 36px;
}

.admin-trigger-btn {
  background: #FFFFFF;
  border: 1px solid #CBDCD6;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4A635E;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.admin-trigger-btn:hover {
  background: #243531;
  color: #FFFFFF;
  border-color: #243531;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 40, 37, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F6FAF8;
}

.admin-tabs {
  display: flex;
  gap: 8px;
}

.admin-tab {
  background: transparent;
  border: 1px solid #CBDCD6;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4A635E;
  cursor: pointer;
}

.admin-tab.active {
  background: #243531;
  color: #FFFFFF;
  border-color: #243531;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #CBDCD6;
}

.btn-approve {
  background: #E5F3EE;
  color: #2F695A;
  border-color: #BEDBD1;
}

.btn-approve:hover {
  background: #D2EBE2;
}

.btn-decline {
  background: var(--pink-light);
  color: #B25850;
  border-color: var(--pink-border);
}

.btn-decline:hover {
  background: #FCE6E3;
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: #F6FAF8;
  font-weight: 600;
  color: #4A635E;
}

.admin-table tbody tr:hover {
  background: #F6FAF8;
}

.badge-pending {
  background: var(--pink-light);
  color: #9E5B54;
  border: 1px solid var(--pink-border);
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 600;
}

.badge-confirmed {
  background: #E5F3EE;
  color: #2F695A;
  border: 1px solid #BEDBD1;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 600;
}

.badge-declined {
  background: #F1F6F4;
  color: var(--text-subtle);
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: line-through;
}

/* Block Form Box */
.block-form-box {
  background: #F6FAF8;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.block-form-box h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.block-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.block-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.block-input-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4A635E;
}

.form-input-sm {
  padding: 7px 10px;
  font-size: 0.85rem;
  border: 1px solid #CBDCD6;
  border-radius: 6px;
  background: #FFF;
}

.schedule-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 12px;
}

.mode-toggle-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mode-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Multi-select Schedule Block Form Styles */
.block-multi-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.multi-select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.multi-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.multi-select-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2E4F47;
  display: flex;
  align-items: center;
  gap: 4px;
}

.quick-select-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.quick-btn {
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid #CBDCD6;
  border-radius: 4px;
  background: #FFF;
  color: #5C6B64;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

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

.chip-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-checkbox-item {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.chip-checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.chip-check-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border: 1.5px solid #CBDCD6;
  border-radius: 8px;
  background: #FFF;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.chip-check-btn:hover {
  border-color: #9ABBB0;
  background: #F4F8F6;
  transform: translateY(-1px);
}

.chip-checkbox-item input[type="checkbox"]:checked + .chip-check-btn {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(46, 79, 71, 0.25);
}

.chip-checkbox-item input[type="checkbox"]:focus-visible + .chip-check-btn {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Day specific chips */
.chip-check-btn.day-sat {
  color: #2D68C4;
}
.chip-checkbox-item input[type="checkbox"]:checked + .chip-check-btn.day-sat {
  background: #2D68C4;
  border-color: #2D68C4;
  color: #FFF;
}
.chip-check-btn.day-sun {
  color: #C0392B;
}
.chip-checkbox-item input[type="checkbox"]:checked + .chip-check-btn.day-sun {
  background: #C0392B;
  border-color: #C0392B;
  color: #FFF;
}

/* Special All Day Chip */
.chip-check-btn.time-all {
  border-style: dashed;
  color: #B45348;
}
.chip-checkbox-item input[type="checkbox"]:checked + .chip-check-btn.time-all {
  background: #B45348;
  border-color: #B45348;
  color: #FFF;
}

/* Summary Banner */
.block-calc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: #EAF2EE;
  border-radius: 10px;
  border: 1.5px solid #D2E4DC;
  margin-top: 6px;
}

.block-calc-info {
  font-size: 0.85rem;
  color: #2E4F47;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.block-calc-count {
  font-weight: 800;
  color: #B45348;
  font-size: 1rem;
}

.schedule-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-section-header h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* ====================================================
   Weekly Timetable (Google Calendar Style)
   ==================================================== */
.timetable-scroll-wrapper {
  background: #FFF;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  overflow: auto;
  max-height: 580px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.timetable-grid-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

/* Header: Day Columns */
.timetable-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #F6FAF8;
  border-bottom: 2px solid #CBDCD6;
  border-right: 1px solid #E2EDE8;
  padding: 10px 4px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #37534C;
  box-shadow: 0 2px 5px rgba(46, 79, 71, 0.07);
}

.timetable-grid-table thead th:first-child {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  position: sticky;
  left: 0;
  z-index: 20;
  background: #EDF4F1;
  border-right: 2px solid #CBDCD6;
  color: #5C6B64;
  font-size: 0.75rem;
}

.timetable-grid-table thead th.day-sat {
  color: #2D68C4;
  background: #F2F7FF;
}

.timetable-grid-table thead th.day-sun {
  color: #C0392B;
  background: #FFF5F5;
}

.timetable-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tt-day-clear-btn {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #FFF1F0;
  border: 1px solid #FFCCC7;
  color: #CF1322;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.tt-day-clear-btn:hover {
  background: #CF1322;
  border-color: #CF1322;
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(207, 19, 34, 0.25);
}

/* All-Day Row */
.timetable-allday-row th,
.timetable-allday-row td {
  position: sticky;
  top: 39px;
  z-index: 12;
  background: #FAFDFB;
  border-bottom: 2px solid #CBDCD6;
  border-right: 1px solid #E2EDE8;
  padding: 5px;
  vertical-align: top;
  min-height: 36px;
}

.timetable-allday-row th {
  left: 0;
  z-index: 18;
  background: #EDF4F1;
  border-right: 2px solid #CBDCD6;
  font-size: 0.72rem;
  color: #B45348;
  text-align: center;
  font-weight: 700;
}

.allday-badge-box {
  background: #FEE2E2;
  border: 1px solid #F87171;
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #991B1B;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.1);
}

.allday-badge-box .allday-del-btn {
  background: transparent;
  border: none;
  color: #991B1B;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
  font-weight: 800;
  border-radius: 3px;
}
.allday-badge-box .allday-del-btn:hover {
  background: rgba(185, 28, 28, 0.2);
}


/* 10:00 첫 번째 시간대 행 최적화 (헤더 잘림 방지 및 상단 여유 공간 확보) */
.timetable-grid-table tbody tr.timetable-row-first td {
  border-top: none !important;
  padding-top: 7px !important;
  padding-bottom: 5px !important;
  height: 48px !important;
}

.timetable-grid-table tbody tr.timetable-row-first .timetable-time-cell {
  padding-top: 7px !important;
  font-weight: 800 !important;
  color: #2E4F47 !important;
}

.timetable-grid-table tbody tr.timetable-row-first .tt-lesson-card {
  margin-top: 1px;
}

/* Time Slot Rows */
.timetable-grid-table tbody td {
  border-bottom: 1px solid #EEF3F0;
  border-right: 1px solid #EEF3F0;
  height: 42px;
  padding: 3px;
  vertical-align: top;
  position: relative;
  transition: background-color 0.12s ease;
}

.timetable-row-hour td {
  border-top: 1px solid #D8E5DF;
}
.timetable-row-half td {
  border-top: 1px dashed #EAF0EC;
}

.timetable-grid-table tbody td:hover {
  background-color: #F8FAF9;
}

/* Time Header cell in body */
.timetable-time-cell {
  position: sticky;
  left: 0;
  z-index: 8;
  background: #F8FAF9;
  border-right: 2px solid #CBDCD6 !important;
  text-align: center;
  font-size: 0.72rem;
  color: #6C7D76;
  font-weight: 600;
  vertical-align: middle !important;
}

.timetable-row-hour .timetable-time-cell {
  font-weight: 700;
  color: #2E4F47;
}

.timetable-row-half .timetable-time-cell {
  font-size: 0.68rem;
  color: #8A9B94;
}

/* Lesson Card Styles */
.tt-lesson-card {
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-left: 3.5px solid;
  font-size: 0.75rem;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  min-height: 36px;
}

.tt-lesson-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.tt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.tt-card-time {
  font-weight: 800;
  font-size: 0.72rem;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
}

.tt-card-del-btn {
  background: transparent;
  border: none;
  color: #8C7E75;
  cursor: pointer;
  padding: 0 3px;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 700;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.tt-card-del-btn:hover {
  background: rgba(180, 83, 72, 0.15);
  color: #B45348;
}

.tt-card-reason {
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Color Categories */
/* 1. 정기 고정 레슨 (시그니처 세이지) */
.tt-card-regular {
  background: #EBF4F0;
  border-left-color: #2E4F47;
  color: #1B3831;
}

/* 2. 예약 레슨 (소프트 블루) */
.tt-card-booking {
  background: #EFF6FF;
  border-left-color: #3B82F6;
  color: #1E40AF;
}

/* 3. 개인 레슨 (소프트 퍼플) */
.tt-card-private {
  background: #F5F3FF;
  border-left-color: #8B5CF6;
  color: #5B21B6;
}

/* 4. 기타/임시 차단 (소프트 로즈) */
.tt-card-blocked {
  background: #FEF2F2;
  border-left-color: #EF4444;
  color: #991B1B;
}

/* Legend Badges */
.timetable-legend-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.legend-fixed { background: #EBF4F0; color: #1B3831; border: 1px solid #A8C5B9; }
.legend-booking { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.legend-private { background: #F5F3FF; color: #5B21B6; border: 1px solid #DDD6FE; }

/* View Toggle Buttons */
.timetable-view-toggle {
  display: inline-flex;
  background: #E8F0EC;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
}

.view-toggle-btn {
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #5C6B64;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-toggle-btn.active {
  background: #FFF;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* Footer */
.app-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #374E49;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px 12px 60px;
  }

  .brand-logo {
    font-size: 2.2rem;
  }

  .studio-hero-card {
    aspect-ratio: 16 / 9;
    max-height: 190px;
  }

  .booking-card {
    padding: 20px 14px;
  }

  .inquiry-type-group {
    grid-template-columns: 1fr;
  }

  .calendar-and-time-wrapper {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .time-slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-method-group {
    grid-template-columns: 1fr;
  }

  .block-inputs {
    flex-direction: column;
  }

  .btn-submit {
    padding: 14px;
  }
}

/* ==========================================================================
   Admin Calendar View
   ========================================================================== */

.admin-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.admin-cal-month {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.admin-cal-nav {
  background: var(--primary-light);
  border: 1.5px solid var(--primary-border);
  color: var(--primary);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.admin-cal-nav:hover {
  background: var(--primary-border);
}

.admin-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.admin-cal-weekdays span:first-child { color: #C05050; }
.admin-cal-weekdays span:last-child  { color: #4A7C72; }

.admin-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.admin-cal-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  min-height: 44px;
}

.admin-cal-cell:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.admin-cal-cell.empty {
  cursor: default;
  pointer-events: none;
}

.admin-cal-cell.today {
  background: var(--primary-light);
  border-color: var(--primary);
  font-weight: 700;
}

.admin-cal-cell.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-cal-cell.sun { color: #C05050; }
.admin-cal-cell.sat { color: #4A7C72; }
.admin-cal-cell.selected.sun,
.admin-cal-cell.selected.sat { color: #fff; }

.admin-cal-badge {
  margin-top: 3px;
  background: var(--pink-accent);
  color: #fff;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  line-height: 1.4;
}

.admin-cal-cell.selected .admin-cal-badge {
  background: rgba(255,255,255,0.35);
  color: #fff;
}

.admin-cal-detail {
  margin-top: 16px;
  border-top: 1.5px solid var(--border-color);
  padding-top: 14px;
  min-height: 48px;
}

.admin-cal-detail-empty {
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.83rem;
  padding: 12px 0;
}

.admin-cal-detail-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.admin-detail-card {
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-detail-card:last-child { margin-bottom: 0; }

.admin-detail-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-detail-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-detail-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-detail-type {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.admin-detail-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}



.pw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(35, 51, 48, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: pwFadeIn 0.2s ease;
}

@keyframes pwFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pw-modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 24px 60px rgba(35, 51, 48, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: pwSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.pw-modal-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.pw-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.pw-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.pw-input-wrap {
  width: 100%;
  margin-bottom: 8px;
}

.pw-input {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--text-main);
  background: var(--primary-light);
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pw-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #fff;
}

.pw-input::placeholder {
  color: var(--text-subtle);
  letter-spacing: 0.3em;
}

.pw-error {
  font-size: 0.78rem;
  color: #B45348;
  margin-bottom: 4px;
  font-weight: 500;
  animation: pwShake 0.35s ease;
}

@keyframes pwShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
}

.pw-modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.pw-btn {
  flex: 1;
  padding: 13px 0;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}

.pw-btn:active {
  transform: scale(0.97);
}

.pw-btn-cancel {
  background: var(--primary-light);
  color: var(--text-muted);
}

.pw-btn-cancel:hover {
  background: var(--primary-border);
}

.pw-btn-confirm {
  background: var(--primary);
  color: #fff;
}

.pw-btn-confirm:hover {
  background: var(--primary-hover);
}


/* 빠른 사유 선택 프리셋 버튼 */
.reason-preset-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.reason-preset-label {
  font-size: 0.72rem;
  color: #496F65;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.btn-preset-chip {
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  color: #2E4F47;
  background: #FFFFFF;
  border: 1px solid #C5DAD1;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.4;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-preset-chip:hover {
  background: #E0EFE8;
  border-color: #7DAEA0;
  color: #1E3731;
  transform: translateY(-1px);
}

.btn-preset-chip:active {
  transform: translateY(0) scale(0.96);
  background: #D2E7DE;
}

.btn-preset-chip.active-preset {
  background: #2E4F47;
  color: #FFFFFF;
  border-color: #2E4F47;
  box-shadow: 0 2px 5px rgba(46, 79, 71, 0.28);
}
