/* ==========================================================================
   Clean Mobile Single-Page Order Form — Midea & ARCODYM (69 Wilayas)
   ========================================================================== */

:root {
  --midea-blue: #0092D0;
  --midea-blue-dark: #0077AB;
  --midea-blue-light: #F0F9FF;
  --bg-page: #FFFFFF;
  --text-main: #111111;
  --text-muted: #555555;
  --border: #CBD5E1;
  --border-subtle: #E2E8F0;
  --border-blue: #BAE6FD;
  --border-focus: #0092D0;
  --error: #DC2626;
  --radius: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background-color: var(--midea-blue);
  color: var(--text-main);
  line-height: 1.4;
  min-height: 100vh;
}

/* Centered Mobile Frame on PC */
.site-wrapper {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background-color: #FFFFFF;
  min-height: 100vh;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

/* 1. Slim Header */
.header {
  background-color: #FFFFFF;
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.lang-switch {
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-switch:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}

/* 2. Full Dynamic Product Photo */
.product-hero-wrap {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1.5px solid var(--border-subtle);
}

.product-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Page Container */
.page-container {
  width: 100%;
  padding: 16px 16px 30px 16px;
  flex: 1;
}

/* 3. Price Bar */
.price-bar {
  text-align: center;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.product-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--midea-blue);
  letter-spacing: 0.5px;
}

/* 4. Order Form */
.order-section {
  margin-bottom: 20px;
  padding-top: 4px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-main);
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(0, 146, 208, 0.15);
}

.field input.invalid,
.field select.invalid {
  border-color: var(--error);
  background: #FEF2F2;
}

.field-error {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--error);
  display: none;
}

.field.has-error .field-error {
  display: block;
}

/* Quantity Selector & Action Area */
.field-qty-wrap {
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  width: 140px;
  background: #FFFFFF;
}

.qty-btn {
  width: 44px;
  height: 40px;
  background: #F8FAFC;
  border: none;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.1s ease;
}

.qty-btn:active {
  background: #E2E8F0;
}

.qty-selector input {
  width: 52px;
  height: 40px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  background: transparent;
}

/* Buttons */
.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--midea-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background-color: var(--midea-blue-dark);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 5. Thank-You State */
.thankyou-section {
  padding: 24px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
}

.thankyou-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--midea-blue);
  margin-bottom: 6px;
}

.thankyou-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.order-summary {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  text-align: right;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html[dir="ltr"] .order-summary {
  text-align: left;
}

/* 6. WhatsApp Button (Thank-You State) */
.whatsapp-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.whatsapp-btn:hover {
  background-color: #1EBE5B;
}

/* 7. Footer Actions — Icons Only in Midea Blue */
.site-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1.5px solid var(--border-subtle);
}

.footer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: #F0F9FF;
  border: 1.5px solid var(--border-blue);
  color: var(--midea-blue);
  text-decoration: none;
  transition: all 0.15s ease;
}

.footer-btn:hover {
  background: var(--midea-blue);
  border-color: var(--midea-blue);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.footer-icon {
  width: 22px;
  height: 22px;
  display: block;
}
