/* New Look Theme CSS for Mexico Grand Hotels Invoicing */
:root {
  --mgh-burgundy-dark: #531411;
  --mgh-burgundy-accent: #80171C;
  --mgh-gold: #E9D581;
  --mgh-gold-dark: #A18234;
  --mgh-cream-bg: #FBF6EC;
  --mgh-cream-border: #EFE6D3;
  --mgh-cream-dark: #E7DCC4;
  --mgh-text-dark: #2B1410;
  --mgh-text-muted: #5B4A3A;
  --mgh-text-light: #9C876C;
}

/* General Layout Reset & Base styles */
body.new-look {
  background-color: var(--mgh-cream-bg) !important;
  background-image: none !important; /* Override old background image */
  font-family: 'Work Sans', sans-serif !important;
  color: var(--mgh-text-dark) !important;
}

.new-look h1, 
.new-look h2, 
.new-look h3, 
.new-look h4, 
.new-look h5, 
.new-look .mgh-title {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  color: var(--mgh-burgundy-dark) !important;
}

/* Main Container Frame */
.new-look-frame {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--mgh-cream-border);
  box-shadow: 0 4px 20px rgba(43, 20, 16, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

/* Premium Header Styles */
.mgh-header {
  background-color: var(--mgh-burgundy-dark);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mgh-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mgh-header-phone {
  color: var(--mgh-gold) !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mgh-header-socials {
  display: flex;
  gap: 14px;
}

.mgh-header-socials a {
  color: #F1E4C6 !important;
  font-size: 12px;
  text-decoration: none !important;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.mgh-header-socials a:hover {
  opacity: 1;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #F1E4C6;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.lang-btn.active {
  background: #fff;
  color: var(--mgh-burgundy-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Gold Accent Line */
.mgh-gold-line {
  height: 3px;
  background: linear-gradient(90deg, #E9D581, #A18234);
}

/* Stepper styles */
.stepper-container {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--mgh-cream-border);
  padding: 16px 24px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.stepper-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.stepper-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--mgh-cream-border);
  color: var(--mgh-text-light);
  transition: all 0.2s;
}

.stepper-pill.active {
  background: var(--mgh-burgundy-dark);
  color: #fff;
  border-color: var(--mgh-burgundy-dark);
}

.stepper-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mgh-cream-border);
  color: var(--mgh-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s;
}

.stepper-pill.active .stepper-circle {
  background: #fff;
  color: var(--mgh-burgundy-dark);
}

.stepper-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mgh-text-light);
}

.stepper-pill.active .stepper-label {
  color: #fff;
}

.stepper-line {
  height: 2px;
  width: 40px;
  background-color: var(--mgh-cream-border);
}

/* Search Welcome Layout */
.mgh-section {
  padding: 32px;
}

.mgh-welcome-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--mgh-gold-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.mgh-welcome-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mgh-text-muted);
  margin-bottom: 28px;
}

/* Card & container styling */
.mgh-card {
  background: #fff;
  border: 1px solid var(--mgh-cream-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(43, 20, 16, 0.02);
}

/* Inputs & Form layout */
.mgh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .mgh-form-grid {
    grid-template-columns: 1fr;
  }
}

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

.mgh-form-group label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--mgh-burgundy-dark) !important;
  letter-spacing: 0.03em;
  margin-bottom: 0 !important;
}

.mgh-input, .mgh-select {
  padding: 11px 12px !important;
  border: 1px solid var(--mgh-cream-dark) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: var(--mgh-text-dark) !important;
  background-color: var(--mgh-cream-bg) !important;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  height: auto !important;
}

.mgh-input:focus, .mgh-select:focus {
  border-color: var(--mgh-burgundy-accent) !important;
  box-shadow: 0 0 0 2px rgba(128, 23, 28, 0.08) !important;
}

.mgh-helper-text {
  font-size: 11.5px;
  color: var(--mgh-text-light);
  margin-top: 2px;
}

/* Buttons */
.mgh-btn-primary {
  background-color: var(--mgh-burgundy-accent) !important;
  border: none !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 12px 26px !important;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background-color 0.2s;
}

.mgh-btn-primary:hover {
  background-color: var(--mgh-burgundy-dark) !important;
}

.mgh-btn-primary:disabled {
  background-color: #e5b9bb !important;
  cursor: not-allowed;
}

.mgh-btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--mgh-gold-dark) !important;
  color: var(--mgh-gold-dark) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 12px 22px !important;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mgh-btn-secondary:hover {
  background-color: rgba(161, 130, 52, 0.06) !important;
}

/* Table styling for search results */
.mgh-table-container {
  border: 1px solid var(--mgh-cream-border);
  border-radius: 8px;
  overflow-x: auto;
}

.mgh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.mgh-table thead tr {
  background-color: var(--mgh-burgundy-dark);
  color: #F1E4C6;
}

.mgh-table th {
  padding: 10px 8px;
  font-weight: 600;
  text-align: left;
}

.mgh-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--mgh-cream-border);
  vertical-align: middle !important;
}

.mgh-table tbody tr:hover {
  background-color: rgba(249, 246, 236, 0.5);
}

/* Mobile cards wrapper */
.mobile-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-card {
  background: #fff;
  border: 1px solid var(--mgh-cream-border);
  border-radius: 8px;
  padding: 16px;
}

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.mobile-card-title {
  font-weight: 600;
  color: var(--mgh-burgundy-dark);
  font-size: 14px;
}

.mobile-card-desc {
  font-size: 12.5px;
  color: var(--mgh-text-muted);
  margin-top: 2px;
}

.mobile-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--mgh-text-muted);
}

.mobile-card-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--mgh-cream-border);
}

/* Footer layout */
.mgh-footer {
  background-color: var(--mgh-burgundy-dark);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mgh-footer-logo {
  width: 100%;
  max-width: 1100px;
  height: auto;
  opacity: 0.92;
}

.mgh-footer-legal {
  font-size: 11px;
  color: #C9A9A6;
  text-align: center;
}

/* Custom Success State styling */
.mgh-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mgh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--mgh-burgundy-dark);
  font-weight: 700;
  margin: 0 auto 16px;
}

.mgh-success-folio {
  background: #fff;
  border: 1px solid var(--mgh-cream-border);
  border-radius: 8px;
  padding: 16px 26px;
  font-size: 13px;
  color: var(--mgh-text-light);
  display: inline-block;
  margin: 16px 0;
}
