:root {
  /* Global Refined Typography Tokens */
  --rx-fw-light: 350;
  --rx-fw-body: 400;
  --rx-fw-nav: 450;
  --rx-fw-medium: 500;

  /* ROBONIX Shared Design System Tokens */
  --rx-contact-bg-page: #F4F7F6;
  --rx-contact-bg-card: #FFFFFF;
  --rx-contact-bg-subtle: #F7F9F8;
  --rx-contact-bg-pill: #E8F4EF;
  --rx-contact-text-main: #1B1F23;
  --rx-contact-text-body: #374151;
  --rx-contact-text-muted: #5A6470;
  --rx-contact-green: #0F7B5F;
  --rx-contact-green-hover: #065F46;
  --rx-contact-border: #DDE5E1;
  --rx-contact-border-card: #E2E8F0;
  --rx-contact-error: #DC2626;
  --rx-contact-error-bg: #FEF2F2;
  --rx-contact-radius-modal: 22px;
  --rx-contact-radius-card: 16px;
  --rx-contact-radius-input: 12px;
  --rx-contact-radius-pill: 9999px;
}

/* Global Refined Typography Reset */
h1, h2, h3, h4, h5, h6, strong, b, th {
  font-weight: var(--rx-fw-medium, 500);
}

/* =============================================================================
   1. CONTACT PAGE LAYOUT (Preserves ROBONIX Header & Footer)
   ============================================================================= */
body.contact-page-body {
  background-color: var(--rx-contact-bg-page);
  color: var(--rx-contact-text-main);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: var(--rx-fw-body, 400);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.stage.contact-stage {
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  overflow: visible;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: var(--rx-contact-bg-page);
}

/* Preserve the existing ROBONIX Header appearance on light page background */
.contact-stage > .header {
  background: #05100F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Preserve the existing ROBONIX Footer appearance */
.contact-stage > .footer {
  background: linear-gradient(180deg, transparent 0%, rgba(5, 16, 15, 0.35) 25%, rgba(5, 16, 15, 0.72) 100%);
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

/* Main Content Area Between Header & Footer */
.contact-page-main {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 36px) clamp(16px, 4vw, 48px);
  width: 100%;
  box-sizing: border-box;
}

/* White Card Container matching ROBONIX menu popup-cards (.rnd-modal-container) */
.contact-page-container {
  width: min(100%, 1340px);
  background-color: var(--rx-contact-bg-card);
  border: 1px solid var(--rx-contact-border);
  border-radius: var(--rx-contact-radius-modal);
  box-shadow: 0 20px 52px -12px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* =============================================================================
   2. HERO SECTION (Left Text & CTA, Right Robotics Laboratory Image)
   ============================================================================= */
.contact-hero-section.rnd-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FCFA 100%);
  border: 1px solid var(--rx-contact-border-card);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 34px);
  box-sizing: border-box;
  overflow: hidden;
}

.contact-hero-section .rnd-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contact-hero-section .rnd-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--rx-contact-bg-pill);
  border-radius: var(--rx-contact-radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: var(--rx-fw-medium, 500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rx-contact-green);
  margin-bottom: 14px;
}

.contact-hero-section .rnd-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rx-contact-green);
}

.contact-hero-section .contact-hero-heading {
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: var(--rx-fw-medium, 500);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--rx-contact-text-main);
  margin: 0 0 12px 0;
  text-transform: none;
}

.contact-hero-section .contact-hero-desc {
  font-size: clamp(14px, 1.05vw, 15.5px);
  font-weight: var(--rx-fw-body, 400);
  line-height: 1.62;
  color: var(--rx-contact-text-body);
  margin: 0 0 22px 0;
  max-width: 580px;
}

.contact-hero-cta-wrap {
  display: flex;
  align-items: center;
}

.contact-schedule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--rx-contact-radius-pill);
  background-color: var(--rx-contact-green);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: var(--rx-fw-medium, 500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rx-contact-green);
  box-shadow: 0 8px 20px -4px rgba(15, 123, 95, 0.32);
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-schedule-btn:hover {
  background-color: var(--rx-contact-green-hover);
  border-color: var(--rx-contact-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(15, 123, 95, 0.4);
}

.contact-schedule-btn:focus-visible {
  outline: 3px solid rgba(15, 123, 95, 0.35);
  outline-offset: 2px;
}

.contact-schedule-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.contact-schedule-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.contact-hero-section .rnd-hero-media {
  position: relative;
  width: 100%;
  height: 236px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  box-shadow: 0 10px 24px -6px rgba(15, 123, 95, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  background-color: #F1F5F9;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-hero-section .rnd-hero-media:hover {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 12px 28px -4px rgba(15, 123, 95, 0.22), 0 0 16px rgba(16, 185, 129, 0.2);
}

.contact-hero-section .rnd-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  will-change: transform;
}

.contact-hero-section .rnd-hero-media:hover .rnd-hero-img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.04);
}

.contact-hero-section .rnd-hero-media:active .rnd-hero-img {
  transform: scale(1.05);
}

.contact-hero-section .rnd-hero-media.is-zoomed {
  cursor: zoom-out !important;
}

.contact-hero-section .rnd-hero-media.is-zoomed .rnd-hero-img {
  transform: scale(1.22) !important;
  filter: saturate(1.08) contrast(1.06) !important;
  cursor: zoom-out !important;
  z-index: 10 !important;
}

/* =============================================================================
   3. CONTACT INFORMATION SECTION (INDIA & USA — Two Equal-Width Columns)
   ============================================================================= */
.contact-offices-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-offices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.contact-office-card {
  background-color: var(--rx-contact-bg-subtle);
  border: 1px solid var(--rx-contact-border-card);
  border-left: 4px solid var(--rx-contact-green);
  border-radius: var(--rx-contact-radius-card);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  box-sizing: border-box;
}

.contact-office-card:hover {
  border-color: rgba(15, 123, 95, 0.45);
  border-left-color: var(--rx-contact-green);
  box-shadow: 0 12px 26px -8px rgba(15, 123, 95, 0.1);
}

.contact-office-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-office-country {
  font-size: 15px;
  font-weight: var(--rx-fw-medium, 500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-contact-green);
  margin: 0;
}

.contact-office-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--rx-contact-bg-pill);
  color: var(--rx-contact-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-office-badge svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-office-address {
  font-style: normal;
  font-size: 14.5px;
  font-weight: var(--rx-fw-body, 400);
  line-height: 1.62;
  color: var(--rx-contact-text-main);
  min-height: 70px;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-office-address span {
  display: block;
}

.contact-office-divider {
  height: 1px;
  width: 100%;
  background-color: var(--rx-contact-border-card);
  margin: 0 0 16px 0;
}

.contact-office-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rx-contact-text-muted);
}

.contact-detail-icon {
  width: 16px;
  height: 16px;
  color: var(--rx-contact-green);
  flex-shrink: 0;
}

.contact-detail-label {
  color: var(--rx-contact-text-muted);
  font-weight: var(--rx-fw-body, 400);
  min-width: 50px;
}

.contact-detail-link {
  color: var(--rx-contact-text-main);
  font-weight: var(--rx-fw-medium, 500);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail-link:hover {
  color: var(--rx-contact-green);
  text-decoration: underline;
}

/* =============================================================================
   4. SCHEDULE A DISCUSSION — MODAL POPUP CARD
   Matches ROBONIX menu popup cards (.rnd-modal-container / .cap-popup-card)
   ============================================================================= */
.sched-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vh, 28px);
  background: rgba(10, 22, 19, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  box-sizing: border-box;
}

.sched-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.sched-modal-active {
  overflow: hidden !important;
}

.sched-modal-container {
  position: relative;
  width: min(94vw, 680px);
  max-height: min(92vh, 860px);
  background-color: var(--rx-contact-bg-card);
  border: 1px solid var(--rx-contact-border);
  border-radius: var(--rx-contact-radius-modal);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.22), 0 4px 16px -2px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.99);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--rx-contact-text-main);
  box-sizing: border-box;
}

.sched-modal-overlay.is-open .sched-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Popup Header */
.sched-modal-header {
  position: relative;
  padding: 26px 30px 18px 30px;
  border-bottom: 1px solid #EBF1EE;
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FCFB 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.sched-header-content {
  flex: 1;
  min-width: 0;
}

.sched-eyebrow-pill,
.contact-hero-section .rnd-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #128E6C 0%, #19A981 100%) !important;
  border: 1px solid rgba(167, 243, 208, 0.55) !important;
  border-radius: var(--rx-contact-radius-pill);
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: var(--rx-fw-medium, 500);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #FFFFFF !important;
  box-shadow:
    0 3px 10px -2px rgba(18, 142, 108, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  margin-bottom: 12px;
}

.sched-eyebrow-dot,
.contact-hero-section .rnd-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FFFFFF !important;
  box-shadow:
    0 0 7px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(167, 243, 208, 0.45);
}

.sched-title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: var(--rx-fw-medium, 500);
  line-height: 1.2;
  color: var(--rx-contact-text-main);
  letter-spacing: -0.015em;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.sched-desc {
  font-size: 14px;
  font-weight: var(--rx-fw-body, 400);
  line-height: 1.5;
  color: var(--rx-contact-text-body);
  margin: 0;
}

/* Upper-Right Close (×) Button matching .rnd-modal-close */
.sched-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid var(--rx-contact-border);
  color: var(--rx-contact-text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sched-modal-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.sched-modal-close:hover {
  background-color: var(--rx-contact-bg-pill);
  border-color: var(--rx-contact-green);
  color: var(--rx-contact-green-hover);
  transform: scale(1.05);
}

.sched-modal-close:focus-visible {
  outline: 3px solid var(--rx-contact-green);
  outline-offset: 2px;
}

/* Scrollable Modal Body */
.sched-modal-body {
  padding: 24px 30px 28px 30px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

.sched-modal-body::-webkit-scrollbar {
  width: 7px;
}

.sched-modal-body::-webkit-scrollbar-track {
  background: #F1F4F2;
  border-radius: 4px;
}

.sched-modal-body::-webkit-scrollbar-thumb {
  background: #C4D1CC;
  border-radius: 4px;
}

/* Form Layout */
.sched-discussion-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sched-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.sched-label {
  font-size: 13px;
  font-weight: var(--rx-fw-medium, 500);
  color: var(--rx-contact-text-main);
  letter-spacing: 0.01em;
}

.sched-req {
  color: var(--rx-contact-green);
  margin-left: 2px;
}

.sched-input,
.sched-select,
.sched-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--rx-fw-body, 400);
  color: var(--rx-contact-text-main);
  background-color: var(--rx-contact-bg-subtle);
  border: 1px solid var(--rx-contact-border);
  border-radius: var(--rx-contact-radius-input);
  padding: 11px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.sched-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F7B5F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}

.sched-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.sched-input::placeholder,
.sched-textarea::placeholder {
  color: #889690;
  font-weight: var(--rx-fw-body, 400);
}

.sched-input:hover,
.sched-select:hover,
.sched-textarea:hover {
  border-color: #B9C8C2;
}

.sched-input:focus,
.sched-select:focus,
.sched-textarea:focus {
  background-color: #FFFFFF;
  border-color: var(--rx-contact-green);
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.14);
}

/* Inline Validation States */
.sched-field.has-error .sched-input,
.sched-field.has-error .sched-select,
.sched-field.has-error .sched-textarea {
  border-color: var(--rx-contact-error);
  background-color: var(--rx-contact-error-bg);
}

.sched-field.has-error .sched-input:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.sched-error-msg {
  display: none;
  font-size: 12px;
  font-weight: var(--rx-fw-body, 400);
  color: var(--rx-contact-error);
  line-height: 1.35;
}

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

/* =============================================================================
   SCHEDULE MODAL: PHONE & COMBOBOX STYLES (MATCHING ROBONIX DESIGN SYSTEM)
   ============================================================================= */

/* Phone Group (Calling Code Selector + Phone Number Input) */
.sched-phone-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.sched-phone-code-combobox {
  position: relative;
  flex-shrink: 0;
}

.sched-phone-code-btn {
  height: 44px;
  padding: 0 11px;
  border-radius: var(--rx-contact-radius-input) 0 0 var(--rx-contact-radius-input);
  border: 1px solid var(--rx-contact-border);
  border-right: none;
  background: var(--rx-contact-bg-subtle);
  color: var(--rx-contact-text-main);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--rx-fw-medium, 500);
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.sched-phone-code-btn:hover {
  background: #EFF5F2;
}

.sched-phone-code-btn:focus-visible {
  outline: 2px solid var(--rx-contact-green);
  outline-offset: -1px;
}

.sched-phone-flag {
  font-size: 14px;
  line-height: 1;
}

.sched-chevron-svg {
  width: 14px;
  height: 14px;
  stroke: #64748B;
  transition: transform 0.18s ease;
}

.sched-phone-code-combobox.is-open .sched-chevron-svg,
.sched-combobox-wrap.is-open .sched-chevron-svg {
  transform: rotate(180deg);
}

.sched-phone-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.sched-phone-input-wrap .sched-input {
  border-radius: 0 var(--rx-contact-radius-input) var(--rx-contact-radius-input) 0;
}

/* Searchable Comboboxes (Country, State, City) */
.sched-combobox-wrap {
  position: relative;
  width: 100%;
}

.sched-combobox-input {
  padding-right: 36px;
  cursor: text;
}

.sched-combobox-arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  padding: 0;
}

.sched-combobox-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.sched-combobox-dropdown,
.sched-phone-code-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: min(210px, 35vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid var(--rx-contact-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 100;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overscroll-behavior: contain;
}

.sched-phone-code-dropdown {
  width: 240px;
  left: 0;
  right: auto;
}

.sched-dropdown-search-wrap {
  padding: 6px 8px;
  border-bottom: 1px solid #EEF3F0;
  background: #F9FCFB;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sched-dropdown-search {
  width: 100%;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--rx-contact-border);
  padding: 0 8px;
  font-size: 12.5px;
  font-family: inherit;
  box-sizing: border-box;
}

.sched-dropdown-search:focus {
  outline: none;
  border-color: var(--rx-contact-green);
}

.sched-dropdown-list {
  max-height: 160px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sched-option-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.12s ease;
}

.sched-option-item:hover,
.sched-option-item.is-selected {
  background: #EFF5F2;
  color: var(--rx-contact-green);
  font-weight: var(--rx-fw-medium, 500);
}

.sched-option-empty {
  padding: 10px 12px;
  font-size: 12.5px;
  color: #64748B;
  font-style: italic;
  text-align: center;
}

.sched-field.is-disabled {
  opacity: 0.58;
}

.sched-field.is-disabled .sched-input {
  cursor: not-allowed;
  background-color: #F1F4F2;
}

.sched-field.has-error .sched-phone-code-btn,
.sched-field.has-error .sched-phone-input-wrap .sched-input,
.sched-field.has-error .sched-combobox-input {
  border-color: var(--rx-contact-error);
  background-color: var(--rx-contact-error-bg);
}

/* Form Actions & Submit Button */
.sched-actions {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sched-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--rx-contact-radius-pill);
  background-color: var(--rx-contact-green);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--rx-fw-medium, 500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rx-contact-green);
  box-shadow: 0 8px 20px -4px rgba(15, 123, 95, 0.32);
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease;
}

.sched-submit-btn:hover:not(:disabled) {
  background-color: var(--rx-contact-green-hover);
  border-color: var(--rx-contact-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(15, 123, 95, 0.4);
}

.sched-submit-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.sched-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: schedSpin 0.7s linear infinite;
}

.sched-submit-btn.is-loading .sched-submit-spinner {
  display: inline-block;
}

.sched-submit-btn.is-loading .sched-submit-arrow {
  display: none;
}

@keyframes schedSpin {
  to { transform: rotate(360deg); }
}

/* Submission Confirmation View */
.sched-success-view {
  display: none;
  text-align: center;
  padding: 18px 8px 8px;
}

.sched-success-view.is-visible {
  display: block;
}

.sched-success-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--rx-contact-bg-pill);
  color: var(--rx-contact-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sched-success-badge svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.sched-success-title {
  font-size: 20px;
  font-weight: var(--rx-fw-medium, 500);
  color: var(--rx-contact-text-main);
  margin: 0 0 8px 0;
}

.sched-success-desc {
  font-size: 14px;
  font-weight: var(--rx-fw-body, 400);
  color: var(--rx-contact-text-body);
  line-height: 1.55;
  margin: 0 0 20px 0;
}

/* =============================================================================
   5. RESPONSIVE DESIGN (Tablet & Mobile)
   ============================================================================= */
@media (max-width: 991px) {
  .contact-hero-section.rnd-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-hero-section .rnd-hero-media {
    height: 210px;
  }
}

@media (max-width: 768px) {
  .contact-page-main {
    padding: 16px 14px;
  }

  .contact-page-container {
    padding: 18px 16px;
    border-radius: 18px;
    gap: 18px;
  }

  .contact-hero-section.rnd-hero {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .contact-offices-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-office-address {
    min-height: 0;
  }

  .sched-modal-header {
    padding: 20px 20px 14px 20px;
  }

  .sched-modal-body {
    padding: 18px 20px 22px 20px;
  }

  .sched-grid-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Submission Error Banner & Spam Protection */
.sched-submit-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  color: #B91C1C;
  font-size: 13px;
  margin-top: 14px;
  margin-bottom: 6px;
  box-sizing: border-box;
  animation: schedFadeSlideDown 0.2s ease forwards;
}

@keyframes schedFadeSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sched-submit-error-icon svg {
  width: 18px;
  height: 18px;
  stroke: #DC2626;
  display: block;
  flex-shrink: 0;
}

.sched-submit-error-text {
  flex: 1 1 auto;
  line-height: 1.35;
}

.sched-submit-retry-btn {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sched-submit-retry-btn:hover {
  background: #B91C1C;
}

.sched-hp {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}
