/* =====================================================
   Morocco Luxury Holidays – Front-End Form Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --mh-green:       #1a4a3a;
  --mh-green-light: #2d6b54;
  --mh-sand:        #f0eeea;
  --mh-rose:        #e08080;
  --mh-rose-pale:   #f5d8d8;
  --mh-rose-dark:   #c96060;
  --mh-text:        #2c2c2c;
  --mh-muted:       #777;
  --mh-border:      #ddd;
  --mh-white:       #fff;
  --mh-radius:      4px;
}

.mh-wrapper {
  font-family: 'Jost', sans-serif;
  color: var(--mh-text);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Hero ---- */
.mh-hero {
  position: relative;
  background: linear-gradient(135deg, #1a4a3a 0%, #0e2d24 40%, #2a1a0e 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 60px 48px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.mh-hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.mh-hero-pattern {
  position: absolute;
  right: -60px; top: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,128,128,0.15) 0%, transparent 70%);
}
.mh-hero-content { position: relative; z-index: 1; }
.mh-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mh-rose);
  border: 1px solid rgba(224,128,128,0.4);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.mh-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  color: var(--mh-white);
  line-height: 1.1;
  margin: 0 0 16px;
}
.mh-hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* ---- Outer layout ---- */
.mh-form-outer {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  background: var(--mh-sand);
  padding: 40px 40px 60px;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 900px) {
  .mh-form-outer { grid-template-columns: 1fr; }
  .mh-hero { border-radius: 8px 8px 0 0; }
}

/* ---- Form Card ---- */
.mh-form-card {
  background: var(--mh-white);
  border-radius: 6px;
  padding: 40px 40px 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* ---- Section Headers ---- */
.mh-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ebebeb;
}
.mh-section-header--inner {
  margin-top: 40px;
}
.mh-section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--mh-rose-pale);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.mh-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--mh-green);
  margin: 0 0 4px;
}
.mh-section-desc {
  font-size: 13px;
  color: var(--mh-muted);
  font-weight: 300;
  margin: 0;
}

/* ---- Fields ---- */
.mh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .mh-grid-2 { grid-template-columns: 1fr; } }

.mh-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mh-field--half { max-width: 50%; }
@media (max-width: 600px) { .mh-field--half { max-width: 100%; } }

.mh-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-green);
}

.mh-form-card input[type="text"],
.mh-form-card input[type="email"],
.mh-form-card input[type="tel"],
.mh-form-card textarea,
.mh-select-wrap select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--mh-text);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.mh-form-card input:focus,
.mh-form-card textarea:focus,
.mh-select-wrap select:focus {
  border-color: var(--mh-green);
  box-shadow: 0 0 0 3px rgba(26,74,58,0.08);
  background: var(--mh-white);
}

/* Select */
.mh-select-wrap { position: relative; }
.mh-select-wrap select { padding-right: 36px; cursor: pointer; }
.mh-chevron {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--mh-green);
  pointer-events: none;
}

/* Phone */
.mh-phone-wrap {
  display: flex;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  overflow: hidden;
  background: #fafafa;
}
.mh-phone-wrap:focus-within {
  border-color: var(--mh-green);
  box-shadow: 0 0 0 3px rgba(26,74,58,0.08);
}
.mh-phone-prefix {
  padding: 12px 14px;
  background: #f0efec;
  font-size: 14px;
  font-weight: 500;
  color: var(--mh-green);
  border-right: 1px solid var(--mh-border);
  white-space: nowrap;
}
.mh-phone-wrap input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Textarea */
.mh-form-card textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}
.mh-char-count {
  font-size: 12px;
  color: var(--mh-muted);
  text-align: right;
  margin: 4px 0 0;
}

/* Counter */
.mh-guests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .mh-guests-grid { grid-template-columns: 1fr; } }

.mh-guest-type { display: flex; flex-direction: column; gap: 10px; }
.mh-guest-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--mh-text);
}
.mh-guest-label em { font-style: normal; color: var(--mh-muted); font-weight: 300; }

.mh-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  overflow: hidden;
  width: fit-content;
}
.mh-counter-btn {
  width: 36px; height: 38px;
  background: #f5f5f3;
  border: none;
  font-size: 18px;
  color: var(--mh-green);
  cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.mh-counter-btn:hover { background: var(--mh-rose-pale); }
.mh-counter input {
  width: 48px; height: 38px;
  border: none !important;
  border-left: 1px solid var(--mh-border) !important;
  border-right: 1px solid var(--mh-border) !important;
  border-radius: 0 !important;
  text-align: center;
  font-weight: 500;
  background: var(--mh-white) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Note */
.mh-note {
  font-size: 12px;
  color: var(--mh-muted);
  margin: 6px 0 0;
}
.mh-note a, .mh-privacy a { color: var(--mh-green); text-decoration: underline; }

/* Privacy */
.mh-privacy {
  font-size: 12px;
  color: var(--mh-muted);
  line-height: 1.6;
  margin: 24px 0 28px;
}

/* Submit */
.mh-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mh-rose);
  color: var(--mh-white);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 48px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  min-width: 220px;
}
.mh-submit-btn:hover { background: var(--mh-rose-dark); transform: translateY(-1px); }
.mh-submit-btn:active { transform: translateY(0); }

/* Messages */
.mh-form-message {
  padding: 14px 18px;
  border-radius: var(--mh-radius);
  font-size: 14px;
  margin-bottom: 20px;
}
.mh-form-message.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.mh-form-message.error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ---- Sidebar ---- */
.mh-sidebar { display: flex; flex-direction: column; gap: 20px; }

.mh-sidebar-cta {
  background: var(--mh-green);
  color: var(--mh-white);
  padding: 28px 24px;
  border-radius: 6px;
}
.mh-sidebar-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
.mh-sidebar-cta p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0 0 18px;
}
.mh-phone-link {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--mh-rose-pale);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.mh-phone-link:hover { color: var(--mh-white); }

.mh-sidebar-why,
.mh-sidebar-morocco {
  background: var(--mh-white);
  padding: 22px 24px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.mh-sidebar-why h4,
.mh-sidebar-morocco h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mh-green);
  margin: 0 0 14px;
}
.mh-sidebar-why ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.mh-sidebar-why li {
  font-size: 13.5px;
  color: var(--mh-text);
  font-weight: 300;
  padding-left: 4px;
}

.mh-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-tag-cloud span {
  font-size: 12px;
  background: var(--mh-sand);
  color: var(--mh-green);
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 400;
}
