/* Contact page — assets/user-new/contact/contact.css */

.contact-page {
  --cp-pad: 12px;
  --cp-radius: 10px;
  --cp-card-bg: rgba(120, 90, 55, 0.55);
  --cp-card-border: rgba(255, 255, 255, 0.85);
  --cp-form-bg: #f3f3f3;
  --cp-input-bg: #fafafa;
  --cp-input-border: #d0d0d0;
  --cp-text: #111;
  --cp-muted: #555;
  --cp-black: #111;
  font-family: 'Montserrat', sans-serif;
  margin-top: 80px;
}

/* ── Section 1: Enquiry form — equal padding on 4 sides ── */
.contact-enquiry {
  padding: var(--cp-pad);
}

.contact-enquiry__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border-radius: var(--cp-radius);
  overflow: hidden;
  background: var(--cp-form-bg);
}

.contact-enquiry__media {
  background: #1a1a1a left center / cover no-repeat;
  min-height: 320px;
}

/* ── Section 2: Contact hero — no outer padding (gap from section 1 bottom pad) ── */
.contact-hero {
  padding: 0;
}

.contact-hero__media {
  position: relative;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  background: #2a2118 center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 56px;
}

.contact-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

.contact-hero__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-hero__subtitle {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
}

.contact-hero__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--cp-card-border);
  background: var(--cp-card-bg);
  backdrop-filter: blur(4px);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: rgba(120, 90, 55, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
  text-decoration: none;
}

.contact-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon img,
.contact-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-card__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.contact-card__value {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.35;
  word-break: break-word;
}

.contact-enquiry__form-wrap {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-enquiry__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--cp-text);
}

.contact-enquiry__subtitle {
  margin: 0 0 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--cp-muted);
  line-height: 1.5;
}

.contact-form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.contact-form-alert--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.contact-form-alert--error {
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c6cb;
}

.contact-form-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.contact-form-status--error {
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c6cb;
}

.contact-form-status--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

/* Success panel */
.contact-success-panel {
  text-align: center;
  padding: 28px 12px 8px;
}

.contact-success-panel__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.contact-success-check {
  width: 72px;
  height: 72px;
  display: block;
}

.contact-success-check__circle {
  stroke: #1f9d55;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
}

.contact-success-check__mark {
  stroke: #1f9d55;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.contact-success-panel.is-animating .contact-success-check__circle {
  animation: contactCircle 0.55s ease-in-out forwards;
}

.contact-success-panel.is-animating .contact-success-check__mark {
  animation: contactCheck 0.35s 0.4s ease-out forwards;
}

@keyframes contactCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes contactCheck {
  to { stroke-dashoffset: 0; }
}

.contact-success-panel__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
}

.contact-success-panel__text {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.contact-success-panel__btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-success-panel__btn:hover {
  background: #111;
  color: #fff;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-group--full {
  grid-column: 1 / -1;
}

.contact-form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cp-text);
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cp-input-border);
  background: var(--cp-input-bg);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--cp-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: #888;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.contact-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-group .is-invalid {
  border-color: #c0392b;
}

.contact-field-error {
  color: #c0392b;
  font-size: 0.78rem;
  min-height: 1em;
}

.contact-phone {
  position: relative;
}

.contact-phone__prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #666;
  pointer-events: none;
  z-index: 2;
  user-select: none;
  padding-right: 10px;
  border-right: 1px solid #d0d0d0;
}

.contact-phone__prefix img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
}

.contact-phone input {
  padding-left: 96px !important;
}

.contact-submit {
  margin-top: 22px;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: var(--cp-black);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover {
  background: #000;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* RTL */
[dir="rtl"] .contact-card {
  text-align: right;
}

[dir="rtl"] .contact-phone__prefix {
  left: auto;
  right: 12px;
  padding-right: 0;
  padding-left: 10px;
  border-right: 0;
  border-left: 1px solid #d0d0d0;
}

[dir="rtl"] .contact-phone input {
  padding-left: 14px !important;
  padding-right: 96px !important;
}

/* Responsive */
@media (max-width: 991px) {
  .contact-hero__cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .contact-enquiry__media {
    min-height: 260px;
  }
}

@media (max-width: 575px) {
  .contact-page {
    --cp-pad: 8px;
    margin-top: 70px;
  }

  .contact-hero__media {
    min-height: 360px;
    padding: 36px 16px 40px;
  }

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

  .contact-enquiry__form-wrap {
    padding: 24px 18px 32px;
  }

  .contact-phone input {
    padding-left: 92px !important;
  }

  [dir="rtl"] .contact-phone input {
    padding-right: 92px !important;
  }
}
