@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --idx-paper: #ffffff;
  --idx-paper-soft: #f6f6f6;
  --idx-ink: #111111;
  --idx-ink-soft: #222222;
  --idx-muted: #555555;
  --idx-accent: #c4570a;
  --idx-bezel-outer: 24px;
  --idx-bezel-inner: 16px;
  --idx-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  --idx-soft-border: 1px solid rgba(15, 15, 15, 0.08);
  --idx-ease: cubic-bezier(0.8, 0, 0.1, 1);
}

body.cnt-agency-body {
  background: #ffffff;
  color: #111111;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.cnt-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 108px;
}

.page-hero {
  background: #ffffff;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: var(--idx-bezel-inner);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.045);
  padding: 84px 48px 76px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #c4570a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  color: #111111;
  margin-bottom: 20px;
  padding-top: 4px;
  padding-bottom: 8px;
  overflow: visible;
}

.hero-title .line-italic {
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5f3d25;
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.hero-title .line-bold {
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
  line-height: 1.28;
  padding-top: 6px;
  padding-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  overflow: visible;
  background: linear-gradient(120deg, #8e4315 12%, #d98a33 88%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #a5511b;
}

.hero-subtitle {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

.branch-tabs-wrap {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 48px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.branch-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.branch-tabs::-webkit-scrollbar {
  display: none;
}

.branch-tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #4a4a4a;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Be Vietnam Pro', sans-serif;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  flex-shrink: 0;
}

.branch-tab:hover {
  color: #111111;
}

.branch-tab[data-active='true'],
.branch-tab.active {
  color: #c4570a;
  font-weight: 700;
  border-bottom-color: #c4570a;
}

.tab-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.15s ease;
  z-index: 2;
}

.tab-arrow:hover {
  color: #c4570a;
}

.tab-arrow.prev,
.tab-arrow.tab-arrow-prev {
  left: 0;
  border-right: 1px solid #e5e5e5;
}

.tab-arrow.next,
.tab-arrow.tab-arrow-next {
  right: 0;
  border-left: 1px solid #e5e5e5;
}

.branch-panels {
  padding: 8px 0 12px;
}

.branch-card {
  margin: 30px 40px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  overflow: hidden;
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  min-height: 410px;
}

.branch-card[data-active='true'] {
  display: grid;
}

.branch-info {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf8 100%);
  border-right: 1px solid #ececec;
}

.branch-name {
  font-size: 24px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.22;
}

.branch-name::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  margin-top: 14px;
  background: rgba(196, 87, 10, 0.5);
}

.branch-desc {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.72;
  margin: 0;
  max-width: 640px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2px 0 0;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.info-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed #dddddd;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row-label {
  font-size: 11px;
  font-weight: 700;
  color: #7a7a7a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}

.info-row-value {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  line-height: 1.6;
}

.branch-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
  padding-top: 2px;
}

.btn-directions {
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 10px;
  background: #c4570a;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(196, 87, 10, 0.22);
}

.btn-directions:hover {
  opacity: 1;
  transform: translateY(-1px);
}

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

.btn-today {
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 10px;
  background: #ffffff;
  color: #4a4a4a;
  border: 1.5px solid #e5e5e5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: all 0.15s;
}

.btn-today:hover {
  border-color: #c4570a;
  color: #c4570a;
  background: #fff2ea;
}

/* Reviews Styles */
.branch-reviews {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #ece7e2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.04);
}

.branch-details {
  margin-top: 2px;
  padding: 16px;
  border: 1px solid #ece1d9;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.branch-details .info-list {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.branch-details .info-row:first-child {
  padding-top: 0;
}

.branch-details .info-row:last-child {
  padding-bottom: 0;
}

.branch-details .branch-actions {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px dashed #dfd4cb;
}

.branch-details .branch-reviews {
  margin-top: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px dashed #dfd4cb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.reviews-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(196, 87, 10, 0.24);
  background: rgba(196, 87, 10, 0.08);
  color: #9b4208;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.review-meta {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #4a4a4a;
  line-height: 1.55;
}

.review-link {
  color: #c4570a;
  font-weight: 600;
  text-decoration: none;
}

.review-link:hover {
  text-decoration: underline;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.review-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #c4570a;
  border: 1px solid #c4570a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.review-link-btn:hover {
  background: #a74708;
  border-color: #a74708;
}

.review-link-btn--ghost {
  background: #ffffff;
  border-color: #e5e5e5;
  color: #4a4a4a;
}

.review-link-btn--ghost:hover {
  background: #fff2ea;
  border-color: #c4570a;
  color: #c4570a;
}

.review-map-wrap {
  border: 1px solid #eadfd7;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.review-map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  background: #fafafa;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ececec;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.review-author {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}

.review-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.review-time {
  margin-left: 8px;
  color: #7a7a7a;
  font-size: 12px;
  font-weight: 500;
}

.review-text {
  margin: 0;
  color: #333333;
  font-size: 13px;
  line-height: 1.6;
}

.review-state {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e9e9e9;
  background: #fafafa;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.5;
}

.review-state--error {
  border-color: rgba(196, 87, 10, 0.25);
  background: #fff5ef;
  color: #a74708;
}

.branch-image {
  margin: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 360px;
  background: #ffffff;
}

.branch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.feedback-section {
  border-radius: 30px;
  border: var(--idx-soft-border);
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 32px 34px 36px;
}

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

.feedback-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  margin: 0 0 6px;
  line-height: 1.2;
}

.feedback-subtitle {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: none;
}

.feedback-form {
  font-family: 'Be Vietnam Pro', sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
}

.feedback-form > .form-grid-2 {
  flex: 1 1 100%;
  margin-bottom: 0;
}

.feedback-form > .chips-section {
  flex: 1 1 280px;
  margin-bottom: 0;
}

.feedback-form > .checkbox-section {
  flex: 1 1 440px;
  margin-bottom: 0;
}

.feedback-form > .form-field:not(.form-recommend) {
  flex: 1 1 58%;
  min-width: 280px;
}

.feedback-form > .form-field.form-recommend {
  flex: 1 1 38%;
  min-width: 240px;
  margin-bottom: 0;
}

.feedback-form > .btn-submit {
  flex: 0 0 auto;
  margin-top: 0;
}

.feedback-form > .cnt-success {
  flex: 1 1 240px;
  margin-top: 0;
  align-self: center;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 10px;
  font-weight: 700;
  color: #7a7a7a;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.form-input,
.form-select {
  padding: 10px 13px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  font-size: 13px;
  color: #111111;
  background: #ffffff;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #c4570a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(196, 87, 10, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #7a7a7a;
}

.chips-section {
  margin-bottom: 0;
}

.chips-label {
  font-size: 10px;
  font-weight: 700;
  color: #7a7a7a;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

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

.chip {
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid #e5e5e5;
  background: #ffffff;
  color: #4a4a4a;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Be Vietnam Pro', sans-serif;
  user-select: none;
}

.chip:hover {
  border-color: #c4570a;
  color: #c4570a;
}

.chip.selected {
  background: #c4570a;
  color: #ffffff;
  border-color: #c4570a;
  font-weight: 600;
}

.checkbox-section {
  margin-bottom: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s;
}

.checkbox-item:hover {
  border-color: #c4570a;
}

.checkbox-item input[type='checkbox'] {
  accent-color: #c4570a;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.checkbox-item span,
.checkbox-item label {
  font-size: 12px;
  color: #4a4a4a;
  font-weight: 500;
  line-height: 1.3;
}

.form-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  font-size: 13px;
  color: #111111;
  background: #ffffff;
  min-height: 108px;
  resize: vertical;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  margin-bottom: 0;
}

.form-textarea:focus {
  outline: none;
  border-color: #c4570a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(196, 87, 10, 0.08);
}

.form-recommend {
  margin-bottom: 0;
}

.btn-submit {
  background: #c4570a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: all 0.15s;
}

.btn-submit:hover {
  background: #a74708;
}

.btn-submit:active {
  transform: scale(0.98);
}

.cnt-success {
  display: none;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(196, 87, 10, 0.2);
  background: #fff2ea;
  color: #a74708;
  font-size: 12px;
  font-weight: 600;
}

.cnt-success[data-show='true'] {
  display: block;
}

@media (max-width: 1080px) {
  .page-hero {
    padding: 80px 32px 70px;
  }

  .hero-title {
    font-size: 60px;
  }

  .feedback-section {
    padding: 30px 20px 34px;
  }

  .feedback-form {
    gap: 10px;
    padding: 12px;
  }

  .branch-tabs-wrap {
    padding: 0 40px;
  }

  .tab-arrow {
    width: 34px;
  }

  .branch-card {
    margin: 24px;
    min-height: 380px;
  }

  .branch-info {
    padding: 34px 30px;
    gap: 12px;
  }

  .branch-desc {
    margin: 0;
  }

  .info-list {
    padding: 12px 16px;
    margin: 2px 0 0;
  }

  .branch-details {
    padding: 14px;
    gap: 12px;
  }

  .info-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
  }
}

@media (max-width: 920px) {
  .cnt-shell {
    width: calc(100% - 16px);
    padding-top: 118px;
  }

  .branch-tabs-wrap {
    padding: 10px 0 0;
    border-bottom: none;
  }

  .branch-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .branch-tab {
    white-space: normal;
    text-align: center;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    border-bottom-width: 1.5px;
    padding: 10px 12px;
    line-height: 1.35;
    min-height: 46px;
  }

  .branch-tab[data-active='true'],
  .branch-tab.active {
    background: #fff2ea;
    border-color: #c4570a;
  }

  .tab-arrow {
    display: none;
  }

  .branch-card {
    grid-template-columns: 1fr;
    margin: 16px 0;
    min-height: 0;
  }

  .branch-info {
    padding: 30px 24px;
    border-right: none;
  }

  .branch-name {
    font-size: 22px;
  }

  .branch-desc {
    max-width: none;
    margin: 0;
  }

  .info-list {
    margin: 2px 0 0;
  }

  .info-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .branch-actions {
    grid-template-columns: 1fr;
  }

  .branch-image {
    min-height: 240px;
  }

  .feedback-section {
    padding: 28px 16px 32px;
  }

  .feedback-container {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .feedback-title,
  .feedback-subtitle,
  .feedback-form {
    grid-column: 1;
  }

  .feedback-subtitle {
    max-width: none;
  }

  .feedback-form {
    display: block;
    padding: 16px;
    border-radius: 14px;
  }

  .form-grid-2,
  .chips-section,
  .form-recommend,
  .form-field {
    margin-bottom: 16px;
  }

  .checkbox-section {
    margin-bottom: 24px;
  }

  .checkbox-section .chips-label {
    margin-bottom: 10px;
  }

  .feedback-form > .checkbox-section + .form-field {
    margin-top: 8px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .form-textarea {
    min-height: 124px;
  }

  .chips-group {
    gap: 10px;
  }

  .chip {
    padding: 9px 14px;
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .checkbox-item {
    padding: 11px 12px;
  }

  .btn-submit {
    width: 100%;
    margin-top: 4px;
    padding: 12px 18px;
  }

  .cnt-success {
    margin-top: 12px;
    padding: 12px 14px;
  }
}

@media (max-width: 700px) {
  .cnt-shell {
    width: calc(100% - 12px);
    padding-top: 110px;
  }

  .page-hero {
    padding: 68px 16px 56px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .branch-tabs {
    grid-template-columns: 1fr;
  }

  .branch-tab {
    font-size: 12px;
    min-height: 42px;
  }

  .branch-card {
    margin: 12px 0;
    border-radius: 14px;
  }

  .branch-info {
    padding: 22px 16px;
  }

  .branch-name {
    font-size: 20px;
  }

  .branch-desc {
    margin: 0;
  }

  .info-list {
    padding: 10px 12px;
    margin: 2px 0 0;
  }

  .branch-details {
    padding: 12px;
    gap: 10px;
  }

  .info-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .info-row-value {
    font-size: 13px;
  }

  .branch-actions {
    margin-top: 0;
  }

  .btn-directions,
  .btn-today {
    padding: 10px 16px;
  }

  .review-actions {
    grid-template-columns: 1fr;
  }

  .review-link-btn {
    width: 100%;
  }

  .review-map-frame {
    height: 200px;
  }

  .feedback-section {
    padding: 24px 10px 28px;
  }

  .feedback-container {
    row-gap: 10px;
  }

  .feedback-form {
    padding: 14px;
  }

  .feedback-title {
    font-size: 24px;
  }

  .feedback-subtitle {
    margin-bottom: 20px;
  }

  .form-grid-2,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-section {
    margin-bottom: 26px;
  }

  .feedback-form > .checkbox-section + .form-field {
    margin-top: 10px;
  }

  .chip {
    width: 100%;
    text-align: center;
  }

  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 34px;
  }

  .branch-name {
    font-size: 18px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-row-label {
    padding-top: 0;
  }
}
