/* Page */
body {
  background: var(--bg);
  color: var(--text-main);
}

@media (max-width: 768px) {
  .delivery-type-wrapper {
    margin-bottom: 10px; /* was bigger before */
  }

  .form-container {
    margin-top: 20px; /* pull form up */
  }
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

  .form-container {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .delivery-title {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}

/* Main text */
.delivery-title span {
  font-size: 22px;
  font-weight: 600;
  position: relative;
  overflow: hidden;

.delivery-title span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;

background: linear-gradient(
  120deg,
  transparent,
 rgba(255,255,255,0.4),
  transparent
);

  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}

  /* Gradient text */
  background: linear-gradient(90deg, #ff7a00, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Glow */
  text-shadow: 0 0 15px rgba(255,122,0,0.35);

  /* Float animation */
  display: inline-block;
  animation: floaty 3s ease-in-out infinite;
}

/* Floating motion */
@keyframes floaty {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.delivery-option {
  position: relative;
  overflow: hidden;
}

/* ripple */
.delivery-option::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255,122,0,0.5);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.delivery-option.ripple::after {
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(20);
    opacity: 0;
  }
}

/* Subtle ambient glow behind text */
.delivery-title::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 40px;
  background: radial-gradient(circle, rgba(255,122,0,0.25), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(12px);
  z-index: -1;
}

.delivery-options {
  margin-bottom: -10px; /* overlaps slightly */
}

#delivery-title-text {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#delivery-title-text.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

#delivery-title-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.dynamic-form {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;

  display: none;
}

.dynamic-form.active-form {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;

  display: block;
}

.form-stage {
  position: relative;
}

/* Fade other buttons */
.delivery-option.fade-out {
  opacity: 0.3;
  transform: scale(0.95);
}

/* Active button expands */
.delivery-option.expand {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,122,0,0.6);
}

/* Container (LEFT ALIGNED now) */
.form-container {
  max-width: 1000px;
  width: 90%;
  margin: 80px auto; /* left aligned */
  padding: 40px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .form-container {
    width: 95%;
    padding: 25px;
  }
}

/* Title */
.form-container h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

/* Subtext */
.form-subtext {
  color: var(--text-subtle);
  margin-bottom: 25px;
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
}

.form-card .form-group:last-child {
  margin-bottom: 0;
}

.form-card {
  background: #171a21;
  border: 1px solid #2a2f3a;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.form-card h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffffff;
}

.option-buttons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.option-buttons button {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-buttons button:hover {
  border-color: var(--benjro-blue);
}

.option-buttons button.active {
  background: var(--benjro-blue);
  color: #fff;
  border-color: var(--benjro-blue);
  box-shadow: 0 0 0 2px rgba(58, 118, 240, 0.25);
}

.bottom-form {
  font-size: 15px;
  color: var(--accent-soft);

  margin-top: 10px;
  text-align: center;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  background: rgba(255,122,0,0.08);
  border: 1px solid rgba(255,122,0,0.25);

  padding: 12px 14px;
  border-radius: 10px;

  margin-top: 15px;
}

.info-icon {
  font-size: 16px;
  line-height: 1.2;
  margin-top: 2px;
}

.info-text {
  font-size: 13px;
  color: #cbd5e1; /* soft readable gray */
  line-height: 1.4;
}

.info-box:hover {
  box-shadow: 0 0 10px rgba(255,122,0,0.2);
}

/* Small Text */
.small {
    font-size: 14px;
    opacity: 65%;
}
/* Groups */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

/* Labels */
.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
}

.form-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface-soft);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.form-section h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--text-main);
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-subtle);
}

select,
textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-main);
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.form-note {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 8px;
}

/* Inputs */
input, select, textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text-main);
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

/* Focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Button */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

/* Hover */
.submit-btn:hover {
  background: #e56d00;
}

.delivery-options {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.delivery-option {
  background: #171a21;
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  padding: 16px 20px;
  width: 120px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-size: 20px;
}

.delivery-option span {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  color: #a0a6b3;
}

/* Hover */
.delivery-option:hover {
  border-color: #ff7a00;
  box-shadow: 0 0 15px rgba(255,122,0,0.25);
  transform: translateY(-2px);
}

/* Active (selected) */
.delivery-option.active {
  border-color: #ff7a00;
  background: rgba(255,122,0,0.1);
  box-shadow: 0 0 20px rgba(255,122,0,0.4);
}

/* MOBILE FIX */
@media (max-width: 768px) {

  .delivery-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 12px;
    justify-content: center;
  }

  .delivery-option {
    width: 100%;        /* fill grid */
    padding: 14px;
    font-size: 18px;
  }

}

@media (max-width: 768px) {
  .delivery-type-wrapper {
    padding: 0 10px;
  }
}

/* HTML Form Close-Open */

.form-wrapper {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.form-wrapper summary {
  padding: 12px 16px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
  list-style: none;
}

.form-wrapper summary:hover {
  background: var(--surface-soft);
}

.form-wrapper[open] summary {
  border-bottom: 1px solid var(--border-light);
}