* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /*padding: 40px 20px;*/
  background: #eef4fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.card {
 /* max-width: 640px; */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #dce8f5;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Stepper header */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #c8dff5;
  background: #e2f2ff;
  padding: 20px 32px;
}

.step {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #8faec8;
}

.step.active {
  color: #003d7a;
}

.step-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 2px solid #b0cce6;
  background: #ffffff;
  color: #8faec8;
  transition: all 250ms;
}

.step.active .step-icon {
  border-color: #005cab;
  background: #005cab;
  color: #ffffff;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: #5a7fa0;
}

.step.active .step-label {
  color: #003d7a;
}

.chevron {
  flex-shrink: 0;
  color: #8faec8;
}

/* Form body */
.card-body {
  background: #f5faff;
  padding: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.required {
  color: #dc2626;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: #86829b;
}

.form-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 0.75rem;
  border: 1.5px solid #c8dff5;
  font-size: 0.95rem;
  background: #ffffff;
  color: #1e293b;
  transition: all 200ms;
  outline: none;
}

.form-input::placeholder {
  color: #86829b;
}

.form-input:focus {
  border-color: #005cab;
  box-shadow: 0 0 0 3px rgba(0, 92, 171, 0.1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 0.75rem;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms, opacity 200ms;
}

.btn-primary {
  background: #005cab;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: #004a8a;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.note {
  border-radius: 12px;
  /*border: 1px solid #dce8f5;*/
  background: #fff;
  padding: 16px 20px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #475569;
  margin-top: 20px;
}

.note strong {
  color: #1e293b;
}

.note a {
  color: #005cab;
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .stepper {
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 20px;
  }

  .step-label {
    display: none;
  }
}

/* ===============================
   Payment Summary
=================================*/

.payment-summary{
    background:#fff;
    border:1px solid #c8dff5;
    border-radius:12px;
    overflow:hidden;
    margin-bottom:25px;
}

.payment-summary-header{
    background:#005cab;
    color:#fff;
    padding:12px 18px;
    font-size:15px;
    font-weight:600;
}

.payment-summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    border-top:1px solid #edf2f7;
    font-size:.9rem;
    color:#475569;
}

.payment-summary-row strong{
    color:#1e293b;
}

.payment-summary-total{
    background:#e2f2ff;
    color:#005cab;
    font-weight:700;
}

.payment-summary-total span:last-child{
    font-size:1.2rem;
    font-weight:700;
}

/* ===============================
   Details
=================================*/

.details-row{
    display:flex;
    gap:45px;
    margin-bottom:28px;
    align-items:flex-start;
}

.details-grid{
    display:grid;
    grid-template-columns:170px 15px auto;
    row-gap:14px;
    column-gap:10px;
    flex:1;
}

.dg-label{
    font-weight:600;
    color:#005cab;
    font-size:.9rem;
}

.dg-colon{
    color:#005cab;
    font-weight:600;
}

.dg-value{
    color:#1e293b;
    font-size:.9rem;
    /*word-break:break-word;*/
}

/* ===============================
   Address
=================================*/

.address-block{
    flex:1;
}

.address-title{
    color:#005cab;
    font-weight:700;
    margin-bottom:12px;
    font-size:.95rem;
}

.address-name{
    font-weight:600;
    color:#1e293b;
    margin-bottom:8px;
}

.address-line{
    color:#475569;
    margin-bottom:6px;
    line-height:1.5;
    font-size:.9rem;
}

/* ===============================
   Checkbox
=================================*/

.confirm-label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    cursor:pointer;
    margin:25px 0;
    color:#005cab;
    font-weight:600;
    font-size:.9rem;
}

.checkbox-wrap{
    position:relative;
    width:18px;
    height:18px;
    flex-shrink:0;
}

.checkbox-wrap input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.checkbox-box{
    position:absolute;
    inset:0;
    border:2px solid #c8dff5;
    border-radius:5px;
    background:#fff;
    transition:.2s;
}

.checkbox-wrap input:checked + .checkbox-box{
    background:#005cab;
    border-color:#005cab;
}

/* ===============================
   Outline Button
=================================*/

.btn-outline{
    background:#fff;
    color:#475569;
    border:1px solid #c8dff5;
}

.btn-outline:hover{
    background:#f4f8fc;
}

/* ===============================
   Responsive
=================================*/

@media(max-width:768px){

.details-row{
    flex-direction:column;
    gap:30px;
}

.details-grid{
    grid-template-columns:140px 15px auto;
}

.payment-summary-row{
    font-size:.85rem;
}

.payment-summary-total span:last-child{
    font-size:1rem;
}

}

/* Completed Step */
.step.done {
    color: #16a34a;
}

.step.done .step-icon {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.step.done .step-label {
    color: #16a34a;
}

.step.done + .chevron {
    color: #16a34a;
}

.step.done .step-icon svg {
    display: none;
}

.step.done .step-icon::before {
    content: "✓";
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}