/* ---------- Page banner (inner pages) ---------- */

.page-banner .wrap {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6b584a;
  margin-bottom: 14px;
}
.breadcrumb a {
  color: var(--maroon-soft);
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .sep {
  color: #c9b8a5;
}
.breadcrumb .current {
  color: var(--maroon-dark);
  font-weight: 700;
}
.page-banner h1 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--maroon-dark);
}
.page-banner p {
  margin-top: 10px;
  color: #5a4636;
  font-size: 16px;
  max-width: 60ch;
}

/* ---------- Contact page layout ---------- */
.contact-section {
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 44px;
  align-items: start;
}

/* ---------- Contact form card ---------- */
.contact-form-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 {
  font-family: "Kavivanar", cursive;
  font-size: 24px;
  color: var(--maroon-dark);
  margin-bottom: 8px;
}
.contact-form-card .form-sub {
  font-size: 14.5px;
  color: #6b584a;
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--maroon-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--brown);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  border: none;
  width: 100%;
  justify-content: center;
}

.form-alert {
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 14.5px;
  margin-bottom: 22px;
  font-weight: 600;
}
.form-alert.success {
  background: #e4f2ea;
  color: var(--green);
  border: 1px solid #bfe0cd;
}
.form-alert.error {
  background: #fbe9e9;
  color: var(--maroon-dark);
  border: 1px solid #f2c2c2;
}

/* ---------- Contact info card ---------- */
.contact-info-card {
  background: var(--maroon-dark);
  color: var(--ivory-deep);
  border-radius: 10px;
  padding: 34px 32px;
  margin-bottom: 22px;
}
.contact-info-card h3 {
  font-family: "Kavivanar", cursive;
  font-size: 22px;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-row:first-of-type {
  padding-top: 0;
}
.info-row .info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-row .info-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}
.info-row .info-text {
  font-size: 14.5px;
  color: #eadfd0;
  line-height: 1.55;
}
.info-row .info-text strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---------- Map embed ---------- */
.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 260px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card,
  .contact-info-card {
    padding: 26px 22px;
  }
}

.captcha-field {
  width: 100%;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 5px;
}

/* CAPTCHA Image */
.captcha-image-wrap {
  height: 58px;
  min-width: 180px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #f8fafc;
  border: 1px solid #d9dee7;
  border-radius: 10px;

  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.captcha-image-wrap img {
  display: block;
  width: 170px;
  height: 48px;
  object-fit: contain;
}

/* Refresh Button */
.captcha-refresh {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d9dee7;
  border-radius: 10px;

  background: #ffffff;
  color: #555f70;

  cursor: pointer;

  font-size: 17px;

  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.captcha-refresh:hover {
  background: #f1f5f9;
  color: #111827;
  border-color: #bfc7d4;

  transform: rotate(90deg);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.captcha-refresh:active {
  transform: rotate(180deg) scale(0.94);
}

.captcha-refresh i {
  line-height: 1;
}

/* Input */
.captcha-input-wrap {
  flex: 1;
  min-width: 0;
}

.captcha-input {
  width: 100%;
  height: 52px;

  padding: 0 16px;

  border: 1px solid #d9dee7;
  border-radius: 10px;

  background: #ffffff;

  font-size: 16px;
  color: #1f2937;

  outline: none;

  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.captcha-input::placeholder {
  color: #9ca3af;
}

.captcha-input:focus {
  border-color: #8b5cf6;
  background: #ffffff;

  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Help Text */
.captcha-help {
  display: block;

  margin-top: 7px;
  padding-left: 2px;

  color: #8a93a3;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .captcha-box {
    gap: 10px;
  }

  .captcha-image-wrap {
    min-width: 150px;
    height: 54px;
  }

  .captcha-image-wrap img {
    width: 140px;
    height: 44px;
  }

  .captcha-refresh {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .captcha-input {
    height: 50px;
    font-size: 15px;
    padding: 0 13px;
  }
}

@media (max-width: 520px) {
  .captcha-box {
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 10px;
  }

  .captcha-image-wrap {
    min-width: 0;
    width: 100%;
    height: 56px;
  }

  .captcha-image-wrap img {
    width: 100%;
    max-width: 170px;
    height: 46px;
  }

  .captcha-refresh {
    width: 46px;
    height: 46px;
    flex-basis: auto;
  }

  .captcha-input-wrap {
    grid-column: 1 / -1;
    width: 100%;
  }

  .captcha-input {
    width: 100%;
    height: 52px;
  }
}


.custom-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 380px;
    min-height: 78px;
    padding: 15px 18px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    z-index: 99999;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    animation: toastSlideIn 0.45s cubic-bezier(.21, 1.02, .73, 1) forwards;
}

.toast-success {
    border-left: 5px solid #16a34a;
}

.toast-error {
    border-left: 5px solid #dc2626;
}

.toast-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toast-content strong {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.toast-content span {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    word-break: break-word;
}

.toast-close {
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 4s linear forwards;
}

.toast-success .toast-progress {
    background: #16a34a;
}

.toast-error .toast-progress {
    background: #dc2626;
}

@keyframes toastSlideIn {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast-hide {
    animation: toastSlideOut 0.35s ease forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .custom-toast {
        top: 15px;
        left: 15px;
        right: 15px;
        width: auto;
    }
}