.branch-feedback-submit-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.branch-feedback-form-grid,
.branch-feedback-form-grid-narrow {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.branch-feedback-field {
  width: 100%;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.branch-feedback-field input,
  .branch-feedback-field select,
  .branch-feedback-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    font-size: 16px;
    background: #D4CBC4;
    margin-top: 6px;
    transition: border-color 0.2s;
  }
  .branch-feedback-field input:focus,
  .branch-feedback-field select:focus,
  .branch-feedback-field textarea:focus {
    border-color: #7a0649;
    outline: none;
  }
}

.branch-feedback-submit-form button[type="submit"],
.branch-feedback-submit-form .btn {
  margin-top: 18px;
  width: 100%;
  max-width: 320px;
  align-self: center;
  font-size: 18px;
  padding: 12px 0;
  border-radius: 22px;
}

@media (max-width: 767px) {
  .branch-feedback-submit-form button[type="submit"],
  .branch-feedback-submit-form .btn {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }
}
/* Branch Feedback Form Styles (moved from inline) */
.branch-feedback-submit-section {
  padding: 0 0 72px;
  background: linear-gradient(to bottom, #D4CBC4, #D4CBC4);
}

.branch-feedback-submit-card {
  background: #D4CBC4;
  border: 1px solid rgba(242, 201, 76, 0.32);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.branch-feedback-submit-head h3 {
  margin: 8px 0 10px;
  color: var(--primary);
}

.branch-feedback-submit-head p {
  color: #5a0336;
  margin-bottom: 20px;
}

.feedback-badge {
  display: inline-block;
  background: #D4CBC4;
  border: 1px solid rgba(242, 201, 76, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--primary);
}

.branch-feedback-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.branch-feedback-form-grid-narrow {
  grid-template-columns: minmax(0, 280px);
  margin-top: 14px;
}

.branch-feedback-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.branch-feedback-field label {
  font-weight: 600;
  color: var(--primary);
}

.branch-feedback-field input,
.branch-feedback-field select,
.branch-feedback-field textarea {
  border: 1px solid rgba(122, 6, 73, 0.16);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 15px;
}

.branch-feedback-field textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 767px) {
  .branch-feedback-submit-section {
    padding: 0 0 56px;
  }

  .branch-feedback-submit-card {
    border-radius: 20px;
    padding: 20px;
  }

  .branch-feedback-form-grid,
  .branch-feedback-form-grid-narrow {
    grid-template-columns: 1fr;
  }
}
.branch-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 70px;
  background:
    radial-gradient(circle at 14% 22%, rgba(242, 201, 76, 0.25), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(212, 203, 196, 0.12), transparent 28%),
    linear-gradient(125deg, #5a0336 0%, #7a0649 55%, #8d1459 100%);
}

.branch-detail-hero::before,
.branch-detail-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.branch-detail-hero::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -110px;
  background: rgba(242, 201, 76, 0.22);
}

.branch-detail-hero::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -120px;
  background: rgba(212, 203, 196, 0.1);
}

.branch-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.branch-detail-hero-content,
.branch-detail-hero-media {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.branch-detail-hero-content {
  background: transparent;
  color: #fff;
  padding: 14px 0;
  max-width: 860px;
}

.branch-detail-hero .container {
  position: relative;
  z-index: 2;
}

.branch-detail-hero-content h1 {
  color: #fff;
  font-size: 54px;
  line-height: 1.08;
  margin-bottom: 18px;
}

.branch-detail-hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  max-width: 640px;
}

.branch-hero-actions,
.branch-cta-actions,
.branch-info-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.branch-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.hero-highlight-card {
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(212, 203, 196, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.hero-highlight-card strong,
.hero-highlight-card span {
  display: block;
}

.hero-highlight-card strong {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-highlight-card span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.branch-detail-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.branch-detail-hero-media {
  display: none;
}

.branch-detail-nav-wrap {
  padding: 0 0 30px;
}

.branch-detail-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 18px;
  background: #D4CBC4;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(242, 201, 76, 0.28);
}

.branch-detail-nav a {
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--primary);
  font-weight: 600;
  background: #D4CBC4;
  border: 1px solid rgba(242, 201, 76, 0.32);
}

.branch-detail-nav a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.branch-info-section,
.branch-directions-section,
.branch-records-section,
.branch-features-section,
.branch-feedback-section,
.branch-faq-section,
.nearby-branches-section,
.branch-cta-section {
  padding: 80px 0;
}

.branch-info-section {
  background: #D4CBC4;
}

.branch-info-grid,
.branch-directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.branch-info-card,
.branch-map-card,
.branch-visual-card,
.branch-steps-card,
.record-card,
.feature-card,
.feedback-card,
.faq-item-card,
.nearby-card {
  background: #D4CBC4;
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(242, 201, 76, 0.3);
}

.branch-info-card,
.branch-steps-card,
.record-card,
.feature-card,
.feedback-card,
.nearby-card {
  padding: 30px;
}

.branch-info-card h3,
.record-card h3,
.feature-card h3,
.feedback-card h3 {
  font-size: 26px;
  margin-bottom: 18px;
}

.branch-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.branch-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(122, 6, 73, 0.08);
}

.branch-info-list li:last-child {
  border-bottom: none;
}

.branch-info-list i,
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-light), #D4CBC4);
  color: var(--primary);
  font-size: 22px;
}

.branch-info-list strong,
.branch-info-list span {
  display: block;
}

.branch-info-list strong {
  color: var(--primary);
  margin-bottom: 4px;
}

.branch-map-card {
  overflow: hidden;
  min-height: 100%;
}

.branch-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

.branch-directions-section,
.branch-feedback-section,
.branch-cta-section {
  background: linear-gradient(to bottom, #D4CBC4, #D4CBC4);
}

.branch-visual-card {
  overflow: hidden;
  position: relative;
}

.branch-visual-card > img,
.branch-main-image-btn img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.branch-main-image-btn {
  border: 0;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.branch-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #D4CBC4;
}

.branch-thumb-btn {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #f8f8f8;
  cursor: pointer;
  transition: var(--transition);
}

.branch-thumb-btn img {
  width: 100%;
  height: 78px;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.branch-thumb-btn.is-active,
.branch-thumb-btn:hover {
  border-color: rgba(122, 6, 73, 0.5);
  box-shadow: 0 8px 16px rgba(122, 6, 73, 0.16);
}

.branch-image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.branch-image-lightbox.is-open {
  display: flex;
}

.branch-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 6, 10, 0.82);
  backdrop-filter: blur(3px);
}

.branch-image-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(90vw, 860px);
  background: #D4CBC4;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.branch-image-lightbox-photo {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.branch-image-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(122, 6, 73, 0.28);
}

body.branch-lightbox-open {
  overflow: hidden;
}

.visual-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(212, 203, 196, 0.95);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.direction-steps {
  margin: 24px 0 0;
  padding-left: 22px;
}

.direction-steps li {
  margin-bottom: 14px;
  color: var(--text);
}

.direction-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.direction-step-card {
  background: #D4CBC4;
  border: 1px solid rgba(242, 201, 76, 0.45);
  border-radius: 16px;
  padding: 14px;
}

.direction-step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.direction-step-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.mini-note-box {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #D4CBC4;
  color: var(--primary);
  border-radius: 18px;
  padding: 18px;
}

.mini-note-box i {
  font-size: 18px;
  margin-top: 2px;
}

.branch-records-section {
  background: #D4CBC4;
}

.record-grid,
.feature-grid,
.feedback-grid,
.nearby-grid {
  display: grid;
  gap: 24px;
}

.record-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid,
.feedback-grid,
.nearby-grid {
  grid-template-columns: repeat(3, 1fr);
}

.record-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #D4CBC4;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.record-card strong {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
}

.records-note {
  margin-top: 18px;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
}

.feature-card,
.feedback-card {
  text-align: center;
}

.feature-icon {
  margin: 0 auto 16px;
}

.feedback-card span {
  display: inline-block;
  margin-top: 14px;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 600;
}

.branch-faq-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.faq-item-card {
  margin-bottom: 18px;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  border: none;
  background: #D4CBC4;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.faq-toggle i {
  font-size: 18px;
  transition: var(--transition);
}

.faq-toggle:not(.collapsed) i {
  transform: rotate(45deg);
}

.faq-answer-box {
  border-top: 1px solid rgba(122, 6, 73, 0.08);
}

.faq-answer-box p {
  padding: 0 24px 24px;
}

.nearby-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.nearby-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 700;
}

.nearby-link:hover {
  color: var(--primary-dark);
}

.branch-cta-box {
  padding: 60px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.branch-cta-box h2,
.branch-cta-box p {
  color: #fff;
}

.branch-cta-box p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.branch-cta-actions {
  justify-content: center;
}

.branch-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
}

.branch-outline-btn:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1199px) {
  .branch-detail-hero-content h1 {
    font-size: 46px;
  }

  .record-grid,
  .feature-grid,
  .feedback-grid,
  .nearby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .branch-detail-hero-grid,
  .branch-info-grid,
  .branch-directions-grid,
  .record-grid,
  .feature-grid,
  .feedback-grid,
  .nearby-grid,
  .branch-hero-highlights {
    grid-template-columns: 1fr;
  }

  .branch-detail-hero-content {
    padding: 40px;
  }

  .branch-detail-hero-content h1 {
    font-size: 38px;
  }

  .branch-detail-hero-media img,
  .branch-visual-card > img,
  .branch-main-image-btn img,
  .branch-map-card iframe {
    min-height: 360px;
  }

  .branch-thumb-btn img {
    min-height: 0;
    height: 72px;
  }
}

@media (max-width: 767px) {
  .branch-detail-hero-content {
    padding: 28px;
  }

  .branch-detail-hero-content h1 {
    font-size: 30px;
  }

  .branch-info-card,
  .branch-steps-card,
  .record-card,
  .feature-card,
  .feedback-card,
  .nearby-card,
  .branch-cta-box {
    padding: 22px;
  }

  .branch-hero-actions,
  .branch-cta-actions,
  .branch-info-actions {
    flex-direction: column;
  }

  .branch-hero-actions .btn,
  .branch-cta-actions .btn,
  .branch-info-actions .btn,
  .branch-outline-btn {
    width: 100%;
    justify-content: center;
  }

  .faq-toggle {
    padding: 20px;
    font-size: 16px;
  }

  .branch-detail-nav {
    justify-content: flex-start;
  }

  .direction-step-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .branch-thumb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .branch-thumb-btn img {
    height: 62px;
  }

  .branch-image-lightbox-dialog {
    width: min(92vw, 680px);
    padding: 10px;
    border-radius: 16px;
  }

  .branch-image-lightbox-close {
    top: -10px;
    right: -10px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 575px) {
  .branch-info-section,
  .branch-directions-section,
  .branch-records-section,
  .branch-features-section,
  .branch-feedback-section,
  .branch-faq-section,
  .nearby-branches-section,
  .branch-cta-section {
    padding: 44px 0;
  }

  .branch-detail-hero {
    padding: 52px 0 32px;
  }

  .branch-detail-nav-wrap {
    padding-bottom: 20px;
  }

  .branch-detail-hero-content {
    padding: 18px 0;
  }

  .branch-detail-hero-content h1 {
    font-size: 26px;
  }

  .branch-detail-hero-content p,
  .hero-highlight-card span,
  .direction-step-card p,
  .faq-answer-box p,
  .branch-info-list li,
  .record-card p,
  .feature-card p,
  .feedback-card p,
  .nearby-card p {
    font-size: 14px;
  }

  .branch-detail-hero-media img,
  .branch-visual-card > img,
  .branch-main-image-btn img,
  .branch-map-card iframe {
    min-height: 240px;
  }

  .branch-info-card,
  .branch-steps-card,
  .record-card,
  .feature-card,
  .feedback-card,
  .nearby-card,
  .branch-cta-box,
  .branch-map-card,
  .branch-visual-card {
    padding: 16px;
    border-radius: 18px;
  }

  .branch-info-list li {
    gap: 12px;
  }

  .branch-info-list i,
  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .visual-label,
  .record-category {
    font-size: 12px;
  }

  .branch-cta-box h2 {
    font-size: 24px;
  }
}

/* Final branch detail pages 3D theme layer */
html,
body,
.branch-info-section,
.branch-directions-section,
.branch-records-section,
.branch-features-section,
.branch-feedback-section,
.branch-faq-section,
.nearby-branches-section,
.branch-cta-section {
  background: #D4CBC4 !important;
  background-color: #D4CBC4 !important;
}

.branch-detail-hero {
  box-shadow: 0 10px 0 rgba(90, 3, 54, 0.22), 0 24px 38px rgba(90, 3, 54, 0.18);
}

.branch-detail-hero-content {
  transform-style: preserve-3d;
  animation: branchDetailHeroFloat 5.8s ease-in-out infinite;
}

@keyframes branchDetailHeroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.branch-detail-hero-media,
.hero-highlight-card,
.branch-info-card,
.branch-map-card,
.branch-visual-card,
.branch-steps-card,
.direction-step-card,
.record-card,
.feature-card,
.feedback-card,
.faq-item-card,
.nearby-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e6ddd6 0%, #D4CBC4 60%, #b9a89f 100%) !important;
  border: 2px solid #5a0336 !important;
  border-radius: 16px !important;
  box-shadow:
    7px 8px 0 rgba(90, 3, 54, 0.22),
    0 18px 30px rgba(90, 3, 54, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, border-color 0.3s ease !important;
}

.branch-detail-hero-media::before,
.hero-highlight-card::before,
.branch-info-card::before,
.branch-map-card::before,
.branch-visual-card::before,
.branch-steps-card::before,
.direction-step-card::before,
.record-card::before,
.feature-card::before,
.feedback-card::before,
.faq-item-card::before,
.nearby-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 44%, rgba(242, 201, 76, 0.2));
  pointer-events: none;
  z-index: 1;
}

.hero-highlight-card::after,
.branch-info-card::after,
.branch-map-card::after,
.branch-visual-card::after,
.branch-steps-card::after,
.direction-step-card::after,
.record-card::after,
.feature-card::after,
.feedback-card::after,
.faq-item-card::after,
.nearby-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #5a0336 0%, #D4CBC4 48%, #f2c94c 100%);
  box-shadow: 0 -5px 14px rgba(90, 3, 54, 0.18);
  pointer-events: none;
  z-index: 2;
}

.branch-detail-hero-media > *,
.hero-highlight-card > *,
.branch-info-card > *,
.branch-map-card > *,
.branch-visual-card > *,
.branch-steps-card > *,
.direction-step-card > *,
.record-card > *,
.feature-card > *,
.feedback-card > *,
.faq-item-card > *,
.nearby-card > * {
  position: relative;
  z-index: 2;
}

.hero-highlight-card,
.hero-highlight-card strong,
.hero-highlight-card span {
  color: #5a0336 !important;
  text-shadow: none !important;
}

.hero-highlight-card strong {
  font-weight: 800 !important;
}

.hero-highlight-card span {
  color: #3a2631 !important;
  font-weight: 600;
}

.branch-detail-hero-media:hover,
.hero-highlight-card:hover,
.branch-info-card:hover,
.branch-map-card:hover,
.branch-visual-card:hover,
.branch-steps-card:hover,
.direction-step-card:hover,
.record-card:hover,
.feature-card:hover,
.feedback-card:hover,
.faq-item-card:hover,
.nearby-card:hover {
  transform: translateY(-9px) rotateX(4deg) rotateY(-3deg) !important;
  filter: brightness(1.04);
  border-color: #7a0649 !important;
  box-shadow:
    10px 12px 0 rgba(90, 3, 54, 0.28),
    0 24px 38px rgba(90, 3, 54, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.branch-detail-hero-media img,
.branch-visual-card > img,
.branch-main-image-btn img,
.branch-map-card iframe {
  border-radius: 13px !important;
  transition: transform 0.55s ease, filter 0.3s ease !important;
}

.branch-detail-hero-media:hover img,
.branch-visual-card:hover > img,
.branch-visual-card:hover .branch-main-image-btn img {
  transform: scale(1.04);
}

.branch-info-list i,
.feature-icon,
.visual-label,
.record-category,
.direction-step-tag {
  background: linear-gradient(145deg, #7a0649, #5a0336) !important;
  color: #fff !important;
  border: 2px solid #f2c94c !important;
  box-shadow:
    4px 5px 0 rgba(90, 3, 54, 0.24),
    0 12px 22px rgba(90, 3, 54, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.branch-info-card:hover .branch-info-list i,
.feature-card:hover .feature-icon {
  transform: translateY(-4px) translateZ(16px) scale(1.06);
}

.branch-detail-nav {
  background: linear-gradient(145deg, #e6ddd6 0%, #D4CBC4 60%, #b9a89f 100%) !important;
  border: 2px solid #5a0336 !important;
  box-shadow: 5px 6px 0 rgba(90, 3, 54, 0.2), 0 14px 24px rgba(90, 3, 54, 0.14) !important;
}

.branch-detail-nav a,
.branch-hero-actions .btn,
.branch-info-actions .btn,
.branch-cta-actions .btn,
.branch-outline-btn,
.nearby-link {
  border: 2px solid #f2c94c !important;
  box-shadow: 4px 5px 0 rgba(42, 1, 25, 0.24), 0 10px 18px rgba(90, 3, 54, 0.16) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

.branch-detail-nav a:hover,
.branch-hero-actions .btn:hover,
.branch-info-actions .btn:hover,
.branch-cta-actions .btn:hover,
.branch-outline-btn:hover,
.nearby-link:hover {
  transform: translateY(-4px) !important;
  box-shadow: 6px 7px 0 rgba(42, 1, 25, 0.3), 0 14px 24px rgba(90, 3, 54, 0.22) !important;
}

.branch-cta-box {
  position: relative;
  overflow: hidden;
  border: 2px solid #f2c94c !important;
  box-shadow:
    8px 10px 0 rgba(90, 3, 54, 0.28),
    0 24px 42px rgba(90, 3, 54, 0.24),
    inset 1px 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.branch-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(242, 201, 76, 0.2), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 48%);
  pointer-events: none;
}

.branch-cta-box > * {
  position: relative;
  z-index: 1;
}

.branch-cta-box:hover {
  transform: translateY(-8px) rotateX(3deg) !important;
  box-shadow:
    11px 13px 0 rgba(90, 3, 54, 0.32),
    0 30px 48px rgba(90, 3, 54, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.26) !important;
}

@media (max-width: 767px) {
  .branch-detail-hero-content {
    animation: none;
  }

  .branch-detail-hero-media,
  .hero-highlight-card,
  .branch-info-card,
  .branch-map-card,
  .branch-visual-card,
  .branch-steps-card,
  .direction-step-card,
  .record-card,
  .feature-card,
  .feedback-card,
  .faq-item-card,
  .nearby-card,
  .branch-cta-box {
    box-shadow:
      5px 6px 0 rgba(90, 3, 54, 0.2),
      0 14px 24px rgba(90, 3, 54, 0.14),
      inset 1px 1px 0 rgba(255, 255, 255, 0.45) !important;
  }

  .branch-detail-hero-media:hover,
  .hero-highlight-card:hover,
  .branch-info-card:hover,
  .branch-map-card:hover,
  .branch-visual-card:hover,
  .branch-steps-card:hover,
  .direction-step-card:hover,
  .record-card:hover,
  .feature-card:hover,
  .feedback-card:hover,
  .faq-item-card:hover,
  .nearby-card:hover,
  .branch-cta-box:hover {
    transform: translateY(-6px) rotateX(3deg) !important;
  }
}

/* Final branch feedback form 3D layer */
.branch-feedback-submit-section {
  background: #D4CBC4 !important;
  padding: 72px 0 !important;
}

.branch-feedback-submit-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e6ddd6 0%, #D4CBC4 60%, #b9a89f 100%) !important;
  border: 2px solid #5a0336 !important;
  border-radius: 18px !important;
  box-shadow:
    8px 10px 0 rgba(90, 3, 54, 0.24),
    0 22px 36px rgba(90, 3, 54, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.52) !important;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
}

.branch-feedback-submit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 44%, rgba(242, 201, 76, 0.22));
  pointer-events: none;
  z-index: 0;
}

.branch-feedback-submit-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 6px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #5a0336 0%, #D4CBC4 48%, #f2c94c 100%);
  box-shadow: 0 -5px 14px rgba(90, 3, 54, 0.18);
  pointer-events: none;
}

.branch-feedback-submit-card:hover {
  transform: translateY(-9px) rotateX(4deg) rotateY(-3deg) !important;
  filter: brightness(1.04);
  box-shadow:
    11px 13px 0 rgba(90, 3, 54, 0.3),
    0 28px 44px rgba(90, 3, 54, 0.24),
    inset 1px 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.branch-feedback-submit-card > * {
  position: relative;
  z-index: 1;
}

.feedback-badge {
  background: linear-gradient(145deg, #7a0649, #5a0336) !important;
  color: #fff !important;
  border: 2px solid #f2c94c !important;
  box-shadow: 4px 5px 0 rgba(90, 3, 54, 0.24), 0 12px 22px rgba(90, 3, 54, 0.18) !important;
}

.branch-feedback-submit-head h3,
.branch-feedback-field label {
  color: #5a0336 !important;
  text-shadow: none !important;
}

.branch-feedback-submit-head p {
  color: #3a2631 !important;
}

.branch-feedback-submit-form {
  max-width: 720px !important;
}

.branch-feedback-field input,
.branch-feedback-field select,
.branch-feedback-field textarea {
  color: #3a2631 !important;
  background: rgba(212, 203, 196, 0.82) !important;
  border: 2px solid rgba(90, 3, 54, 0.34) !important;
  border-radius: 14px !important;
  box-shadow: inset 2px 2px 5px rgba(90, 3, 54, 0.08), 3px 4px 0 rgba(90, 3, 54, 0.1) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

.branch-feedback-field input:focus,
.branch-feedback-field select:focus,
.branch-feedback-field textarea:focus {
  border-color: #5a0336 !important;
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.24), 4px 5px 0 rgba(90, 3, 54, 0.16) !important;
  transform: translateY(-2px);
}

.branch-feedback-submit-form button[type="submit"],
.branch-feedback-submit-form .btn {
  border: 2px solid #f2c94c !important;
  box-shadow: 5px 6px 0 rgba(42, 1, 25, 0.28), 0 12px 22px rgba(90, 3, 54, 0.2) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

.branch-feedback-submit-form button[type="submit"]:hover,
.branch-feedback-submit-form .btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 7px 8px 0 rgba(42, 1, 25, 0.32), 0 16px 28px rgba(90, 3, 54, 0.26) !important;
}

@media (max-width: 767px) {
  .branch-feedback-submit-section {
    padding: 52px 0 !important;
  }

  .branch-feedback-submit-card {
    box-shadow:
      5px 6px 0 rgba(90, 3, 54, 0.2),
      0 14px 24px rgba(90, 3, 54, 0.14),
      inset 1px 1px 0 rgba(255, 255, 255, 0.45) !important;
  }

  .branch-feedback-submit-card:hover {
    transform: translateY(-6px) rotateX(3deg) !important;
  }
}
