/* ==========================================================================
   WhatsApp Order Modal Styles - Norden IPTV
   Fully styled with Website's Royal Blue Palette
   ========================================================================== */

#whatsapp-order-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

#whatsapp-order-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

#whatsapp-order-modal-card {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  border-radius: 26px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.15);
  overflow-y: auto;
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
}

#whatsapp-order-modal-overlay.active #whatsapp-order-modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Inner Container */
.wom-container {
  padding: 24px 22px 20px 22px;
}

@media (min-width: 640px) {
  .wom-container {
    padding: 28px 28px 24px 28px;
  }
}

/* Top Bar */
.wom-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wom-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wom-wa-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.wom-wa-badge svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.wom-titles-col {
  display: flex;
  flex-direction: column;
}

.wom-meta-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2563eb;
  margin-bottom: 2px;
}

.wom-title {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

/* Close Button */
.wom-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0f172a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: #ffffff;
}

.wom-close-btn:hover {
  background: #1e293b;
  transform: scale(1.05);
}

/* Subtitle */
.wom-subtitle {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

.wom-required-notice {
  font-size: 11px;
  color: #ef4444;
  margin-bottom: 12px;
  display: block;
}

/* Form Styles */
.wom-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.wom-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.wom-label span.req {
  color: #ef4444;
  margin-left: 2px;
}

.wom-input, .wom-select, .wom-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff !important;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.wom-input:focus, .wom-select:focus, .wom-textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.wom-input::placeholder, .wom-textarea::placeholder {
  color: #94a3b8;
}

/* Dropdown arrow styling: use clean single arrow without duplicate */
select.wom-select {
  background-color: #ffffff !important;
  background-image: none !important;
  padding-right: 28px !important;
  cursor: pointer !important;
}

select.wom-select::-ms-expand {
  display: block;
}

.wom-field-help {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.wom-textarea {
  min-height: 70px;
  resize: vertical;
}

/* Notice */
.wom-review-notice {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Action Buttons - Pure Blue Branding */
.wom-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.wom-btn-submit {
  flex: 2;
  padding: 12px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.wom-btn-submit:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

.wom-btn-cancel {
  flex: 1;
  padding: 11px 18px;
  border-radius: 9999px;
  background: transparent;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid #2563eb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.wom-btn-cancel:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: #1d4ed8;
}
