/* =========================================================
   Mailbox Application Form
   Reuses .checkout-section / .order-summary (auth-dashboard.css)
   and .wizard-summary / .upload-dropzone / .addon-card / .free-inclusions
   (llc-formation.css) for shared components. Adds only what's new here.
   ========================================================= */

.mailbox-page {
  padding-top: 90px;
  background: var(--bg-light);
  min-height: 100vh;
  padding-bottom: 60px;
}

.mailbox-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* ---------------- Phone with +1 prefix ---------------- */
.phone-input-group {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 600;
  color: var(--text-gray);
}

.phone-input-group input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

/* ---------------- Plan selection cards ---------------- */
.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.plan-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.plan-card:hover {
  border-color: var(--accent-teal);
}

.plan-card.selected {
  border-color: var(--accent-teal);
  background: rgba(0, 168, 150, 0.04);
}

.plan-card-radio-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.plan-card.selected .plan-card-radio-dot {
  border-color: var(--accent-teal);
  background: var(--accent-teal);
  box-shadow: inset 0 0 0 3px var(--white);
}

.plan-card h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  padding-right: 28px;
}

.plan-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-teal);
}

.plan-card-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-gray);
}

.plan-billing-toggle {
  display: none;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.plan-card.selected .plan-billing-toggle {
  display: flex;
}

.plan-billing-option {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-gray);
}

.plan-billing-option.active {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: var(--white);
}

/* ---------------- PS Form 1583 CTA banner ---------------- */
.ps1583-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ps1583-banner-text h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ps1583-banner-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin: 0;
}

.ps1583-banner .btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mailbox-layout {
    grid-template-columns: 1fr;
  }
  .ps1583-banner {
    flex-direction: column;
    text-align: center;
  }
}
