
.row {
  justify-content: center;
}

.row.g-3 > * {
  padding: 12px;
}

.col-12 {
  width: 100%;
}

.col-md-6 {
  width: 100%;
}

/* Center the outer form container */
.row.justify-content-center {
  justify-content: center;
}

/* Center the column itself */
.row.justify-content-center > .col-lg-6 {
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.mx-auto.text-center h1 {
  white-space: nowrap;     /* force single line */
  text-align: center;
}

/* Center section heading */
section > h2 {
  text-align: center;
}

/* Cards layout */
.features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Card alignment */
.features .card {
  text-align: center;
  max-width: 320px;
  width: 100%;
}

/* Keep phone & email readable */
.features .card p {
  margin: 6px 0;
  word-break: break-word;
}

/* Make phone & email responsive */
.features .card span {
  display: inline-block;
  font-weight: 600;
  white-space: nowrap;
}

/* ===========================
   FORM ELEMENTS
=========================== */
.form-control {
  width: 100%;
  padding: 14px 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Center section heading */
section > h2 {
  text-align: center;
}

/* Center cards container */
.features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Center card content */
.features .card {
  text-align: center;
  max-width: 300px;
  width: 100%;
}

/* Center heading and description */
section > h2,
section > p {
  text-align: center;
}

/* Center map container */
section .glass {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}


/* ===========================
   FLOATING LABELS
=========================== */
.form-floating {
  position: relative;
}

.form-floating > label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #666;
  pointer-events: none;
  background: #fff;
  padding: 0 6px;
  transition: 0.2s ease;
}

.form-floating > .form-control:focus + label,
.form-floating > .form-control:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 12px;
  color: #0d6efd;
}

/* Required for floating labels */
.form-floating input::placeholder,
.form-floating textarea::placeholder {
  color: transparent;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.btn-primary {
  background: #0d6efd;
  color: #fff;
}

.btn-primary:hover {
  background: #0b5ed7;
}

.w-100 {
  width: 100%;
}

.py-3 {
  padding-block: 14px;
}

/* ===========================
   ALERT
=========================== */
.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.alert-success {
  background: #e6f4ea;
  color: #1e7e34;
}

.d-none {
  display: none;
}

/* Small devices (phones <576px) */
@media (max-width: 575.98px) {
  .col-md-6 {
    width: 100%;
  }
}

/* Medium devices (tablets ≥768px) */
@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
  }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
  .col-md-6 {
    width: 50%;
  }
}

/* Mobile & tablet */
@media (max-width: 991.98px) {
  .row.justify-content-center > .col-lg-6 {
    width: 100%;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .row.justify-content-center > .col-lg-6 {
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .mx-auto.text-center h1 {
    font-size: 20px;
  }
}

@media (max-width: 575.98px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  section .glass {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .features .card span {
    font-size: 15px;
    white-space: normal;
  }
}
