@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
@import url("./dashboard-shared.css");

:root {
  color-scheme: light;
  --ink: #101b2d;
  --muted: #58595B;
  --soft: #f7fafd;
  --soft-blue: #e0f4ff;
  --blue: #17479E;
  --navy: #061325;
  --line: #dce7ef;
  --white: #ffffff;
  --green: #16a06b;
  --amber: #F68A46;
  --red: #ED1C24;
  --shadow: 0 18px 42px rgba(16, 27, 45, 0.08);
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: "Gotham", "Montserrat", "Inter", sans-serif;
}

/* --- Bulk Card --- */
.bulk-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.bulk-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.bulk-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.input-wrap {
  margin-top: 14px;
}

.input-wrap input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  outline: 0;
}

.input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 71, 158, 0.06);
}

/* --- Packages Layout --- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.package-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.package-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 27, 45, 0.06);
}

.package-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
  background: rgba(23, 71, 158, 0.02);
}

.package-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.package-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.4;
  flex-grow: 1;
}

.package-card strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}

.package-card small {
  font-size: 10px;
  color: var(--muted);
}

/* Tags on package cards */
.package-card .tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #white;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.package-card .tag.special {
  background: var(--amber);
}

.card-tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: transparent;
  transition: all 0.15s ease;
}

.package-card.selected .card-tick {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* --- Summary Details --- */
.summary-card {
  position: sticky;
  top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  align-self: start;
}

.estimate {
  margin: 14px -20px 16px;
  padding: 14px 16px;
  border-block: 1px solid var(--line);
  background: #f3fbff;
  text-align: center;
}

.estimate strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.estimate span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.payment-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  margin-top: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-button:hover:not(:disabled) {
  background: var(--navy);
}

.payment-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.charge-note {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* --- Layout Offset --- */
.configure-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .configure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .configure-grid {
    margin-top: 14px;
  }
}
