/* ==========================================================
   RoomKhata Contact — built from the live design system
   (colors/fonts pulled from style.css + page.css tokens)
   ========================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: start;
  padding: 50px;
  background: #ffffff;
  border: 1.4px solid rgba(33, 150, 243, 0.25);
  border-radius: 24px;

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 20px 48px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  transition: all 0.35s ease;
}

.contact-layout::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.35) 0%,
    rgba(201, 168, 76, 0.16) 35%,
    rgba(201, 168, 76, 0.05) 60%,
    transparent 75%
  );
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

/* blue glow — bottom left */
.contact-layout::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -170px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(107, 188, 255, 0.4) 0%,
    rgba(107, 188, 255, 0.18) 35%,
    rgba(107, 188, 255, 0.06) 60%,
    transparent 75%
  );
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================
   LEFT — Office cards
   ========================================================== */

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  background: rgb(232 245 255);
  padding: 30px 20px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.office-block {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.office-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 35px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #0a0806;
  margin-bottom: 20px;
}

.office-company {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16.5px;
  line-height: 1.4;
  color: #151515;
  letter-spacing: 0.02em;
  max-width: 600px;
  font-weight: 500;
  margin: 0 0 30px;
  text-align: justify;
}

.office-heading em {
  font-style: normal;
  color: #7a5f22;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px 16px;
  width: 100%;
}

.info-columns .info-row {
  margin-bottom: 0;
  width: fit-content;
}

.info-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1.4px solid rgba(0, 140, 255, 0.35);
  color: rgb(0, 140, 255);
  font-size: 15px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.info-icon i {
  font-size: 13px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 3px;
  min-width: 0;
  flex: 1;
}

.info-label {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #7a7a7a;
}

.info-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.75;
  color: #000000;
  margin: 0;
  word-break: break-word;
}

.info-value + .info-value {
  margin-top: 4px;
}

.info-tag {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  color: #404040;
  margin-left: 2px;
}

/* ==========================================================
   RIGHT — Form panel
   ========================================================== */

.contact-form-wrapper {
  background: #ffffff;
}

.voucher-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.voucher-tag::before,
.voucher-tag::after {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--gold);
}

.voucher-tag::after {
  display: none;
}

.voucher-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--p2-text);
  margin: 0 0 30px 0;
}

/* ==========================================================
   Form fields
   ========================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "Montserrat", sans-serif;
}

.input-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.input-box label {
  font-family: "Montserrat", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--p2-text);
}

.input-field {
  display: flex;
  align-items: center;
  background: rgb(236 247 255);
  border: 1.4px solid transparent;
  border-radius: 14px;
  padding: 0 16px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.input-field:hover {
  border-color: rgb(0, 140, 255);
}

.input-field:focus-within {
  background: #ffffff;
  border-color: #6bbcff;
  box-shadow: 0 0 0 4px rgba(107, 188, 255, 0.16);
}

.input-field i {
  color: rgb(0, 140, 255);
  font-size: 15px;
  margin-right: 12px;
  transition: color 0.3s ease;
}

.input-field:focus-within i {
  color: #098cf7;
}

.input-field input,
.input-field textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--p2-text);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 0;
  font-family: "Montserrat", sans-serif;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  color: #9a8f7a;
  font-weight: 400;
}

.textarea {
  align-items: flex-start;
}

.textarea i {
  margin-top: 16px;
}

.input-field textarea {
  resize: none;
  height: 100px;
  line-height: 1.6;
}

/* ==========================================================
   Button — same shimmer language as .nav-dd-rail-cta
   ========================================================== */

.contact-form .btn {
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  border: none;
  border-radius: 14px;
  padding: 16px 34px;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-light) 50%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  color: var(--dark);
  font-family: "Cinzel", Georgia, serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
  transition: all 0.45s ease;
}

.contact-form .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.55s;
}

.contact-form .btn:hover::before {
  transform: translateX(100%);
}

.contact-form .btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(201, 168, 76, 0.45);
}

.contact-form .btn i {
  margin-left: 9px;
}

/* ==========================================================
   Math CAPTCHA — single row: question | input | regenerate
   ========================================================== */

.captcha-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-question {
  flex: 1 1 130px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #0a0806;
  background: rgb(236 247 255);
  border: 1.4px solid rgba(0, 140, 255, 0.25);
  border-radius: 14px;
  padding: 15px 18px;
  text-align: center;
  user-select: none;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

.captcha-input-field {
  flex: 1 1 140px;
  margin: 0;
}

.captcha-input-field input {
  font-size: 15px;
}

/* Hide number input spinners for a cleaner look */
.captcha-input-field input::-webkit-outer-spin-button,
.captcha-input-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.captcha-input-field input[type="number"] {
  -moz-appearance: textfield;
}

/* Regenerate button */
.captcha-refresh {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgb(236 247 255);
  border: 1.4px solid rgba(0, 140, 255, 0.35);
  color: rgb(0, 140, 255);
  cursor: pointer;
  font-size: 17px;
  transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.captcha-refresh:hover {
  background: rgb(0, 140, 255);
  color: #ffffff;
  border-color: rgb(0, 140, 255);
  transform: rotate(180deg);
}

.captcha-refresh:active {
  transform: rotate(180deg) scale(0.92);
}

/* Feedback message */
.captcha-message {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  min-height: 16px;
  padding-left: 4px;
  transition: color 0.2s ease;
}

.captcha-message.success {
  color: #1b8a4c;
}

.captcha-message.error {
  color: #d13d3d;
}

/* Shake animation for wrong answers on submit */
.captcha-box.shake {
  animation: captchaShake 0.4s ease;
}

@keyframes captchaShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.captcha-question.verified {
  border-color: #1b8a4c;
  background: rgb(232 250 240);
}

.captcha-question.invalid {
  border-color: #d13d3d;
}

/* ==========================================================
   RoomKhata Contact — Responsive Media Queries
   ========================================================== */

/* Tablets / small laptops */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px;
  }

  .contact-layout::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -120px;
  }

  .contact-layout::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -120px;
  }

  .office-heading {
    font-size: 30px;
  }

  .voucher-title {
    font-size: 26px;
  }
}

/* Tablets portrait / large phones */
@media (max-width: 768px) {
  .contact-layout {
    padding: 24px;
    border-radius: 20px;
    gap: 24px;
  }

  .contact-details {
    padding: 24px 18px;
    gap: 16px;
  }

  .office-heading {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .office-company {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .info-columns {
    flex-direction: column;
    gap: 20px;
  }

  .info-row {
    margin-bottom: 20px;
  }

  .voucher-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .input-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    align-self: stretch;
  }
}

/* Phones */
@media (max-width: 600px) {
  .contact-layout {
    padding: 18px;
    border-radius: 16px;
  }

  .contact-details {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .office-heading {
    font-size: 28px;
  }

  .office-company {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .info-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .info-icon i {
    font-size: 12px;
  }

  .info-label {
    font-size: 13px;
  }

  .info-value {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .info-tag {
    font-size: 12px;
  }

  .voucher-title {
    font-size: 22px;
  }

  .voucher-tag {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .input-field {
    padding: 0 12px;
    border-radius: 12px;
  }

  .input-field input,
  .input-field textarea {
    font-size: 14px;
    padding: 13px 0;
  }

  .input-box label {
    font-size: 11.5px;
  }

  .contact-form .btn {
    padding: 14px 24px;
    font-size: 11.5px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .contact-layout {
    padding: 14px;
  }

  .contact-details {
    padding: 18px 12px;
  }

  .office-heading {
    font-size: 25px;
  }

  .office-company {
    font-size: 15px;
  }

  .info-row {
    gap: 8px;
    margin-bottom: 16px;
  }

  .info-value {
    font-size: 13px;
  }

  .captcha-question {
    padding: 13px 14px;
    font-size: 16px;
  }

  .captcha-refresh {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .captcha-row {
    flex-direction: column;
    align-items: stretch;
  }

  .captcha-question,
  .captcha-input-field {
    flex: none;
    width: 100%;
  }

  .captcha-question {
    padding: 13px 16px;
    font-size: 16px;
  }

  .captcha-input-field input {
    padding: 13px 0;
  }

  .captcha-refresh {
    width: 100%;
    height: 46px;
  }

  .captcha-question {
    font-size: 17px;
  }
}