/* Styles of resources/views/frontend/contact.blade.php (moved out of the template so browsers cache them). */
/* =========
   Coastal Design Tokens
   ========= */
:root {
  --primary-color: #3d3934;
  --primary-color-dark: #2d2a27;
  --secondary-bg: #E4E1D8;
  --coastal-blue: #1e3a5f;
  --coastal-light: #f8f6f3;
  --coastal-sand: #f5f1eb;
  --ocean-text: #5a5550;
  --driftwood: #8b7355;
  --sea-glass: #7dd3c0;
  --lighthouse-white: #ffffff;
  --coastal-mist: #e8e5df;
  --sunset-coral: #ff7f7f;
  --accent-red: #8c0f1b;
  --ink: #3d3934;
  --text: #3d3934;
  --muted: var(--color-text-muted);
  --accent: var(--primary-color);
  --soft: var(--coastal-light);
  --border: #d4d1ca;
  --shadow-md: 0 8px 32px rgba(61, 57, 52, .12);
  --shadow-lg: 0 16px 48px rgba(61, 57, 52, .18);
  --radius: 16px;
}

/* =========
   Global Text Color Override
   ========= */
.contact-page-wrapper,
.contact-page-wrapper p,
.contact-page-wrapper span,
.contact-page-wrapper div,
.contact-page-wrapper h1,
.contact-page-wrapper h2,
.contact-page-wrapper h3,
.contact-page-wrapper h4,
.contact-page-wrapper h5,
.contact-page-wrapper h6,
.contact-page-wrapper li,
.contact-page-wrapper a:not(.btn):not(.showroom-card__btn--primary),
.contact-page-wrapper label,
.contact-page-wrapper td,
.contact-page-wrapper th,
.page-hero-description,
.page-hero-description strong,
.section-intro p,
.why-item p,
.why-item h3,
.location-card p,
.location-card span,
.location-card h3,
.hours-grid span,
.hours-grid div,
.form-label,
.faq-question,
.faq-answer,
.faq-answer p {
  color: var(--color-text) !important;
}

/* Keep white text on dark backgrounds */
.page-hero-badge span,
.page-hero-badge i,
.why-item-icon i,
.btn-primary,
.cta-section *,
.location-card-header *,
.quick-call-btn,
.quick-call-btn *,
.showroom-card__btn--primary,
.showroom-card__btn--primary i {
  color: var(--color-on-dark) !important;
}

/* Keep primary color for headings and accents where needed */
.section-intro h2,
.page-hero-title {
  color: var(--primary-color) !important;
  -webkit-text-fill-color: var(--primary-color) !important;
  background: none !important;
}

/* =========
   Coastal Page Hero Section
   ========= */
.page-hero {
  background: linear-gradient(135deg, var(--coastal-light) 0%, var(--lighthouse-white) 50%, var(--coastal-sand) 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--coastal-mist);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(126, 211, 192, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 24, 61, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Coastal wave pattern overlay */
.page-hero::before {
  background-image: 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='%237dd3c0' 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");
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--coastal-blue) 100%);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 24, 61, 0.25);
  margin-bottom: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.page-hero-badge i {
  color: var(--color-on-dark);
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-hero-badge span {
  color: var(--color-on-dark);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero-divider {
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, transparent 0%, #fff 20%, var(--primary-color) 50%, #fff 80%, transparent 100%);
  border-radius: 3px;
  margin: 0 auto 2rem;
  position: relative;
}

.page-hero-divider::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--lighthouse-white), 0 0 0 5px var(--primary-color);
}

.page-hero-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ocean-text);
  text-align: center;
  padding: 0 1rem;
}

.page-hero-description strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* =========
   Why Contact Us Section
   ========= */
.why-contact {
  padding: 3rem 0;

}

.why-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
  .why-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
  .why-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.why-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--lighthouse-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-surface);
}

.why-item-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--coastal-blue) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(0, 24, 61, 0.15);
}

.why-item-icon i {
  color: var(--color-on-dark);
  font-size: 1.5rem;
}

.why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--ocean-text);
  line-height: 1.6;
  margin: 0;
}

/* =========
   Contact Cards Section
   ========= */
.contact-cards {
  padding: 4rem 0 3rem;
  background: var(--lighthouse-white);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-intro h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--ocean-text);
  line-height: 1.7;
}

/* Section Title with Lines */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title__heading {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin: 0;
  position: relative;
}

.section-title__line {
  flex-grow: 1;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  opacity: 0.7;
}

/* "Contact {store} in {city}, {state}" is wider than a phone: let it wrap there. */
@media (max-width: 767px) {
  .section-title__heading {
    white-space: normal;
  }
}

.info-card {
  background: var(--lighthouse-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #fff 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-surface);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card__thumb {
  display: block;
  overflow: hidden;
  background: var(--coastal-light);
  position: relative;
}

.info-card__thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.info-card:hover .info-card__thumb img {
  transform: scale(1.05);
}

.info-card__body {
  padding: 2rem 1.5rem;
}

.info-card__body h6 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.info-card__body .contact-info {
  line-height: 1.8;
  color: var(--ocean-text);
}

.info-card__body .contact-info > div {
  margin-bottom: 0.5rem;
}

.info-card__body .contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.info-card__body .contact-info a:hover {
  color: #8c0f1b;
  text-decoration: underline;
}

.info-card__body .contact-info strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hours styling */
.hours-list {
  max-width: 340px;
}

.hours-list .hour-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.hours-list .hour-row:last-child {
  border-bottom: none;
}

.hours-list .hour-row .day {
  font-weight: 600;
  color: var(--primary-color);
}

.hours-list .hour-row .time {
  color: var(--ocean-text);
}

.hours-list .hour-row .closed {
  color: var(--color-danger);
  font-weight: 600;
}

/* =========
   Combined Showroom + Form Section
   ========= */
.combined-section {
  padding: 4rem 0;
  background: var(--lighthouse-white);
}

.combined-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin: 2rem auto 0;
}

/* Aside (left): storefront photo, phone numbers, emails and hours. It is as tall as the form; the photo takes
   the extra height. */
.contact-aside {
  display: flex;
  flex-direction: column;
  background: var(--lighthouse-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-aside__photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
}

.contact-aside__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-aside__body {
  padding: 1.5rem;
}

.contact-aside__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin: 0 0 0.5rem;
}

.call-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.call-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.call-list li:last-child {
  border-bottom: 0;
}

.call-list a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.call-list a:hover {
  text-decoration: underline;
}

/* Email addresses are too long to share a line with the store name */
.call-list--stacked li {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.call-list--stacked span {
  font-size: 0.8125rem;
}

.call-list--stacked a {
  white-space: normal;
  overflow-wrap: anywhere;
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.hours-row .day-label {
  color: var(--primary-color);
  font-weight: 600;
  min-width: 0;
}

.hours-row .time-label {
  color: var(--ocean-text);
  font-weight: 500;
  white-space: nowrap;
}

.hours-row .closed-label {
  font-weight: 600;
}

.hours-note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ocean-text);
}

/* Form Column (Right) */
.form-column {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-panel {
  background: var(--lighthouse-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #fff 100%);
  z-index: 1;
}

.form-panel:hover {
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-header h2::before {
  display: none;
}

.form-header p {
  color: var(--ocean-text);
  font-size: 1rem;
  line-height: 1.6;
}

.form-header p strong {
  color: var(--primary-color);
  font-weight: 600;
}

.form-group {
  margin-bottom: 0.75rem;
  position: relative;
}

.form-group.compact {
  margin-bottom: 0.65rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 3px;
  font-weight: 700;
}

.form-label .optional {
  color: var(--ocean-text);
  font-weight: 400;
  font-size: 0.875rem;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--primary-color);
  background: var(--lighthouse-white);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-control:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(61, 57, 52, 0.1);
  background: var(--lighthouse-white);
}

.form-control.is-valid {
  border-color: #10b981;
  padding-right: 1rem;
}

.form-control.is-valid:not(select) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.form-control.is-invalid {
  border-color: var(--color-danger);
}

.form-control::placeholder {
  color: var(--ocean-text);
  opacity: 0.6;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Select Dropdown - Wrapper for custom arrow */
.form-group.has-select {
  position: relative;
}

/* Select Dropdown */
select.form-control {
  cursor: pointer;
  width: 100%;
  min-width: 0;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Remove default dropdown icons in different browsers */
select.form-control::-ms-expand {
  display: none;
}

/* Remove checkmarks and other option styling */
select.form-control option {
  background: var(--lighthouse-white) !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 1rem !important;
  font-weight: 500 !important;
}

select.form-control option:checked {
  background: var(--coastal-light) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

select.form-control:hover {
  border-color: var(--color-surface);
}

/* Alert Info Box */
.alert-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: #0c4a6e;
}

.alert-info i {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Field Help Text */
.field-help {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Error Message */
.error-message {
  display: none;
  font-size: 0.75rem;
  color: var(--color-danger);
  margin-top: 0.25rem;
}

.error-message.show {
  display: block;
}

/* Form Section */
.form-section {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.form-section:last-of-type {
  margin-bottom: 0.75rem;
  border-bottom: none;
  padding-bottom: 0;
}

.form-section.compact {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.form-section-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--coastal-blue) 100%);
  color: var(--color-on-dark);
  border-radius: 6px;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(0, 24, 61, 0.15);
}

/* Textarea Footer */
.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.375rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* Simple utility */
.hidden { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.char-counter #char-count {
  font-weight: 500;
}

.char-counter.warning #char-count {
  color: #f59e0b;
}

.char-counter.danger #char-count {
  color: var(--color-danger);
}

/* Privacy Notice */
.privacy-notice {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--coastal-light) 0%, var(--lighthouse-white) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.privacy-notice i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--coastal-blue) 100%);
  color: var(--color-on-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-notice p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ocean-text);
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--coastal-blue) 100%);
  color: var(--lighthouse-white);
  border: none;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  box-shadow: 0 4px 12px rgba(0, 24, 61, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--coastal-blue) 0%, var(--primary-color) 100%);
  box-shadow: 0 6px 20px rgba(0, 24, 61, 0.3);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 24, 61, 0.2);
}

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

.btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 24, 61, 0.2), 0 4px 12px rgba(0, 24, 61, 0.2);
}

.btn-submit i {
  font-size: 1.125rem;
}

/* =========
   Showrooms: one column per building, each with its map
   ========= */
.showrooms-section {
  padding: 4rem 0;
  background: var(--lighthouse-white);
}

.showrooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.showroom-card {
  display: flex;
  flex-direction: column;
  background: var(--lighthouse-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.showroom-card__map {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  background: var(--coastal-light);
}

.showroom-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

/* One store: a single wide card, map left and details right. */
.showrooms-grid--single {
  grid-template-columns: 1fr;
}

.showrooms-grid--single .showroom-card {
  flex-direction: row;
  align-items: stretch;
}

.showrooms-grid--single .showroom-card__map {
  flex: 0 0 58%;
  width: auto;
  height: auto;
  min-height: 26rem;
}

.showrooms-grid--single .showroom-card__body {
  justify-content: center;
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .showrooms-grid--single .showroom-card {
    flex-direction: column;
  }

  .showrooms-grid--single .showroom-card__map {
    flex: none;
    width: 100%;
    height: 280px;
    min-height: 0;
  }

  .showrooms-grid--single .showroom-card__body {
    padding: 1.5rem;
  }
}

.showroom-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.showroom-card__name a,
.showroom-card__inside-name a {
  color: inherit;
  text-decoration: none;
}

.showroom-card__name a:hover,
.showroom-card__inside-name a:hover {
  text-decoration: underline;
}

.showroom-card__summary {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.showroom-card__details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.showroom-card__details li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.showroom-card__details i {
  width: 16px;
  margin-top: 0.25rem;
  color: #6b6b6b;
  font-size: 0.85rem;
  text-align: center;
  flex-shrink: 0;
}

.showroom-card__details a {
  color: var(--primary-color);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.showroom-card__details a:hover {
  text-decoration: underline;
}

.showroom-card__inside {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--coastal-light);
  border-radius: 8px;
}

.showroom-card__inside-name {
  font-weight: 700;
}

.showroom-card__inside-note {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.showroom-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.showroom-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.showroom-card__btn--primary {
  background: var(--primary-color);
}

.showroom-card__btn--primary:hover {
  background: var(--color-fill-strong);
}

.showroom-card__btn--outline {
  background: var(--lighthouse-white);
}

.showroom-card__btn--outline:hover {
  background: #f2f2f2;
}

/* =========
   FAQ: two columns of questions
   ========= */
.faq-section {
  padding: 4rem 0;
  background: var(--color-surface-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  align-items: start;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--lighthouse-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--lighthouse-white);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  background: #f2f2f2;
}

.faq-question:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.faq-question i {
  color: var(--primary-color) !important;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
  background: #ececec;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1rem 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--ocean-text);
  line-height: 1.7;
  margin: 0;
}

.faq-answer a {
  color: var(--primary-color) !important;
  text-decoration: underline;
  font-weight: 500;
}

.faq-answer a:hover {
  color: var(--color-text-soft) !important;
}

@media (max-width: 991px) {
  .combined-grid,
  .showrooms-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* =========
   Responsive Design
   ========= */
@media (max-width: 768px) {
  .page-hero {
    padding: 2rem 0 1.5rem;
  }

  .combined-section,
  .showrooms-section,
  .faq-section {
    padding: 2rem 0;
  }

  .form-panel {
    padding: 1.5rem 1.25rem;
  }

  .info-card__body {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 576px) {
  .page-hero-title {
    font-size: 1.75rem;
  }

  .page-hero-description {
    font-size: 1rem;
  }

  .form-panel {
    padding: 1.25rem 1rem;
  }

  .form-header h2 {
    font-size: 1.375rem;
  }

  .showroom-card__map {
    height: 240px;
  }

}

/* Smooth scrolling for badge link */
html {
  scroll-behavior: smooth;
}

.badge-link {
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.badge-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* =========
   Black and light gray theme
   ========= */
/* header.css reads these on :root, so they keep the site-wide values; the page content gets its own below. */
:root {
  --primary-color: var(--color-accent-strong);
  --primary-color-dark: #705739;
  --coastal-blue: #705739;
  --coastal-light: #f7f5f2;
  --coastal-sand: #ece6dc;
  --ocean-text: #5f5347;
  --driftwood: var(--color-accent-strong);
  --lighthouse-white: #ffffff;
  --coastal-mist: #ece6dc;
  --border: #dfd7ca;
  --shadow-md: 0 12px 32px rgba(61, 53, 44, 0.1);
  --shadow-lg: 0 20px 44px rgba(61, 53, 44, 0.14);
  --radius: 12px;
}

.contact-page-wrapper {
  --primary-color: #111111;
  --primary-color-dark: #000000;
  --coastal-blue: #2e2e2e;
  --coastal-light: #f5f5f5;
  --coastal-sand: #ededed;
  --ocean-text: #4a4a4a;
  --driftwood: #111111;
  --coastal-mist: #ededed;
  --border: #e2e2e2;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.09);
  background: var(--color-surface);
}

.combined-section {
  background: var(--color-surface-soft);
}

/* The site's .container has 10px side padding; a matching row gutter keeps phones from scrolling sideways. */
.contact-page-wrapper .container > .row {
  --bs-gutter-x: 20px;
}

.section-title__line {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 50%, transparent 100%);
  opacity: 1;
}

.section-title__heading,
.section-intro h2,
.form-header h2,
.faq-question {
  color: var(--color-text) !important;
}

.contact-aside,
.form-panel,
.showroom-card,
.faq-item {
  border-color: var(--border) !important;
  box-shadow: var(--shadow-md);
}

.form-panel::before {
  height: 3px;
  background: var(--color-fill-strong);
}

.form-section-title i,
.privacy-notice i {
  background: #ececec;
  color: var(--color-text);
  box-shadow: none;
}

.form-control {
  border-color: #d6d6d6;
  background: var(--color-surface);
}

.form-control:hover,
.form-control:focus,
select.form-control:hover {
  border-color: var(--color-fill-strong);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.privacy-notice {
  background: var(--color-surface-soft);
  border-color: var(--color-border);
}

.btn-submit {
  background: var(--color-fill-strong);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn-submit:hover:not(:disabled) {
  background: var(--color-fill-strong);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}
