.application-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    /* overflow: hidden; */
    position: relative;
}

/* Professional Header - Matches your theme */
.form-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Unique Progress Indicator */
.progress-container {
    padding: 2rem 2.5rem;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.journey-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.journey-track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-light);
    transform: translateY(-50%);
    z-index: 1;
}

.journey-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.journey-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 1;
}

.step-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.step-marker::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journey-step.active .step-marker {
    border-color: var(--brand);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(35, 83, 208, 0.2);
}

.journey-step.active .step-marker::before {
    opacity: 1;
}

.journey-step.completed .step-marker {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: var(--brand);
    color: white;
}

.step-number {
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.journey-step.active .step-number,
.journey-step.completed .step-number {
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.journey-step.active .step-label {
    color: var(--brand);
    font-weight: 700;
}

/* Form Body - Matches your contact form styling */
.form-body {
    padding: 2.5rem;
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-title i {
    color: var(--brand);
}

/* Form Controls - Matches your contact form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required::after {
    content: " *";
    color: #e53e3e;
}

/* Conditional Fields */
.conditional-field {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(35, 83, 208, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--brand);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.conditional-field.active {
    display: block;
}

/* File Upload - Professional */
.file-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafbfe;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--brand);
    background: rgba(35, 83, 208, 0.03);
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.file-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(35, 83, 208, 0.1);
}

.file-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.file-remove {
    color: #e53e3e;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.file-remove:hover {
    background: rgba(229, 62, 62, 0.1);
}

/* Buttons - Matches your theme */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}



/* Payment Section */
.payment-section {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    border: 1px solid var(--border-light);
}

.payment-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand);
    margin: 1rem 0;
    line-height: 1;
}

.payment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.payment-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(35, 83, 208, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(35, 83, 208, 0.1);
}

.payment-feature i {
    color: var(--brand);
    font-size: 1.25rem;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Summary Section */
.summary-section {
    background: rgba(35, 83, 208, 0.03);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(35, 83, 208, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(35, 83, 208, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .application-container {
        margin: 1rem;
        border-radius: 16px;
    }

    .form-header,
    .form-body {
        padding: 1.5rem;
    }

    .journey-track {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .journey-step {
        flex: 0 0 calc(33.333% - 1rem);
        margin-bottom: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .payment-features {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .journey-step {
        flex: 0 0 calc(50% - 1rem);
    }

    .step-marker {
        width: 36px;
        height: 36px;
    }

    .step-number {
        font-size: 0.9rem;
    }
}

/* Loading state for payment button */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #e53e3e;
}

.was-validated .form-control:invalid~.invalid-feedback,
.was-validated .form-select:invalid~.invalid-feedback,
.form-control.is-invalid~.invalid-feedback,
.form-select.is-invalid~.invalid-feedback {
    display: block;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e53e3e;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e53e3e'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.banner {
    height: 285px !important;

}

.banner::after {
    height: 120px !important;
}

/* ------- Pro polish ------- */



/* Section dividers (subtle) */
.form-step .step-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--brand) 10%, #fff);
    color: var(--ink);
    width: fit-content;
}

.form-step .step-title i {
    color: var(--brand);
}

/* Input with leading icon (non-breaking for your markup) */
.form-group.has-icon {
    position: relative;
}

.form-group.has-icon .bi {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .55;
    pointer-events: none;
}

.form-group.has-icon .form-control,
.form-group.has-icon .form-select {
    padding-left: 2.25rem;
}


.flatpickr-calendar {
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(11, 16, 32, .14);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
}

/* Summary chips */
.summary-item span:last-child {
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(35, 83, 208, .12);
    padding: .25rem .6rem;
    border-radius: 10px;
}

/* Payment panel badge row */
.payment-feature {
    border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.payment-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(35, 83, 208, .08);
}

/* Sticky next/back on mobile */
@media (max-width: 768px) {
    .form-navigation {
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 10;
        border-top: 1px solid var(--border-light);
        padding-bottom: .75rem;
    }
}

/* === Sleek Horizontal Progress Bar === */
.mini-steps.sleek {
    position: absolute;
    /* top: -60px; */
    right: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
}

.mini-steps.sleek .bar {
    position: relative;
    width: 150px;
    height: 6px;
    background: #edf1f9;
    border-radius: 10px;
    overflow: hidden;
}

.mini-steps.sleek .bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width 0.3s ease;
}

.mini-steps.sleek .meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.mini-steps.sleek .meta .count {
    font-size: 12px;
    font-weight: 700;
    color: #7b89a3;
}

.mini-steps.sleek .meta .label {
    font-size: 13px;
    font-weight: 600;
    color: #22304a;
}

.conditional-block {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(35, 83, 208, 0.03);
    border-radius: 12px;
    border-left: 4px solid #2353D0;
    ;
    animation: slideDown 0.3s ease;
}

.form-step,
.form-intro {
    display: none;
}

.form-step.active,
.form-intro.active {
    display: block;
}

.mini-steps.sleek {
    top: 20px;
}

.insu-step-card{
  padding: 24px;
}

.insu-price-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.insu-price-item{
  display:block;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid #d9e0f2;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.insu-price-item:hover{
  border-color: rgba(35,83,208,.55);
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.10);
  transform: translateY(-1px);
}

.insu-price-radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.insu-price-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.insu-price-level{
  font-size: 0.95rem;
  font-weight: 800;
  color: #2353D0;
  letter-spacing: 0.2px;
}

.insu-price-value{
  font-size: 1.05rem;
  font-weight: 800;
  color: #101828;
  white-space: nowrap;
}

.insu-price-note{
  margin-top: 8px;
  font-size: 0.92rem;
  color: #475467;
  line-height: 1.35;
}

/* selected state (radio checked) */
.insu-price-item:has(.insu-price-radio:checked){
  border-color: #2353D0;
  box-shadow: 0 10px 22px rgba(35,83,208, 0.18);
  background: #eef4ff;
}

/* Notes box */
.insu-notes-box{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d9e0f2;
  background: #fbfcff;
}

.insu-notes-title{
  font-weight: 800;
  color: #2353D0;
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  gap:8px;
}

.insu-notes-list{
  margin: 0;
  padding-left: 18px;
  color: #475467;
}

.insu-notes-list li{ margin: 6px 0; }

.insu-radio-group.is-invalid .insu-price-item{
  border-color: #dc3545 !important;
}
.insu-radio-error{
  display:block;
  margin-top:10px;
}

.insu-price-disclaimer{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;

  background: #eef4ff;
  border: 1px solid rgba(35,83,208,.18);
  border-left: 4px solid #2353D0;

  color: #22304a;
  font-size: .94rem;
  line-height: 1.45;

  display: flex;
  gap: 12px;
  align-items: flex-start;

  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
}

.insu-price-disclaimer i{
  color: #2353D0;
  font-size: 1.1rem;
  margin-top: 2px;
  flex: 0 0 auto;
}

.insu-price-disclaimer strong{
  font-weight: 800;
  color: #2353D0;
  display: block;
  margin-bottom: 4px;
}

/* ================================
   (<=650px)
================================== */
@media (max-width: 650px) {
  .mini-steps.sleek{
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100%;
    padding: 10px 12px;
  }

  .mini-steps.sleek{
    flex-wrap: wrap;
    gap: 8px;
  }

  .mini-steps.sleek .bar{
    width: 100%;
    order: 2;
  }

  .mini-steps.sleek .meta{
    order: 1;
    margin-left: auto;
    align-items: flex-end;
    max-width: 100%;
  }

  .mini-steps.sleek .meta .label{
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .form-step .step-title,
  .form-intro .step-title{
    margin-top: 10px !important;
  }
}

.nice-select.open .list {
    z-index: 1000;
}