.ed-cd-form-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    max-width: 650px;
    margin: 20px auto;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.ed-cd-form-container form {
    margin-bottom: 0px !important;
}

/* Progress bar styling */
.ed-cd-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 15px;
}
.ed-cd-step-indicator {
    font-size: 13px;
    font-weight: 600;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ed-cd-step-indicator span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #edf2f7;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.ed-cd-step-indicator.active {
    color: #3182ce;
}
.ed-cd-step-indicator.active span {
    background: #3182ce;
    color: #ffffff;
}

/* Steps toggles */
.ed-cd-form-step {
    display: none;
}
.ed-cd-form-step.active {
    display: block;
}

.ed-cd-form-step h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a202c;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

/* Inputs & Structure */
.ed-cd-form-group {
    margin-bottom: 18px;
}
.ed-cd-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #4a5568;
}
.ed-cd-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.ed-cd-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.ed-cd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.ed-cd-form-row.col-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 500px) {
    .ed-cd-form-row, .ed-cd-form-row.col-3 {
        grid-template-columns: 1fr;
    }
}

.ed-cd-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}
.ed-cd-radio-group label {
    font-weight: normal;
    cursor: pointer;
}

/* Repeater Modules styling */
.ed-cd-stop-group, .ed-cd-vehicle-group {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}
.ed-cd-stop-group h3, .ed-cd-vehicle-group h3 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2b6cb0;
}

.ed-cd-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* Buttons styling */
.ed-cd-btn-primary {
    background: #3182ce;
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.ed-cd-btn-primary:hover {
    background: #2b6cb0;
}
.ed-cd-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
}
.ed-cd-btn-secondary:hover {
    background: #e2e8f0;
}

.ed-cd-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
}

.ed-cd-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Invalid form input indicators */
.ed-cd-input.is-invalid,
input[required].is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.25) !important;
}

/* Beautiful custom inline notice framework */
.ed-cd-error-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #fde8e8;
    border-left: 4px solid #e13d3d;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ed-cd-form-container {
    background: #ffffff;
    border: 1px solid #e2e5eb;
    border-radius: 17px;
    padding: 30px;
    max-width: 650px;
    margin: 20px auto;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}

/* Progress bar styling */
.ed-cd-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #e8eaf0;
    padding-bottom: 15px;
}

.ed-cd-step-indicator {
    font-size: 13px;
    font-weight: 600;
    color: #8b93a5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ed-cd-step-indicator span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f1f4;
    color: #626b7e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.ed-cd-step-indicator.active {
    color: #ff6f2c;
}

.ed-cd-step-indicator.active span {
    background: #ff6f2c;
    color: #ffffff;
}

/* Steps toggles */
.ed-cd-form-step {
    display: none;
}

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

.ed-cd-form-step h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #11182b;
    border-bottom: 1px solid #e8eaf0;
    padding-bottom: 8px;
}

/* Inputs & Structure */
.ed-cd-form-group {
    margin-bottom: 18px;
}

.ed-cd-form-group > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #626b7e;
}

.ed-cd-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dde1e8;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
    color: #11182b;
}

.ed-cd-input::placeholder {
    color: #999da6;
}

.ed-cd-input:focus {
    outline: none;
    border-color: #ff6f2c;
    box-shadow: 0 0 0 3px rgba(255, 111, 44, 0.12);
}

/* Form rows */
.ed-cd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ed-cd-form-row.col-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.ed-cd-form-row.col-2 {
    grid-template-columns: 1fr 1fr;
}

.ed-cd-form-row.col-1 {
    grid-template-columns: 1fr;
}

/* Radio buttons styled as buttons */
.ed-cd-radio-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.ed-cd-radio-group label {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #dde1e8;
    border-radius: 10px;
    color: #5f687b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hide native radio */
.ed-cd-radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Radio hover */
.ed-cd-radio-group label:hover {
    border-color: #ff7428;
}

/* Selected radio */
.ed-cd-radio-group label:has(input[type="radio"]:checked) {
    background: #fff0e8;
    border-color: #ff7428;
    color: #f15f18;
}

/* Radio keyboard focus */
.ed-cd-radio-group label:has(input[type="radio"]:focus-visible) {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 116, 40, 0.15);
}

/* Repeater Modules styling */
.ed-cd-stop-group,
.ed-cd-vehicle-group {
    background: #fafafa;
    border: 1px solid #e2e5eb;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
}

.ed-cd-stop-group h3,
.ed-cd-vehicle-group h3 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #11182b;
}

.ed-cd-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* Primary button */
.ed-cd-btn-primary {
    background: #ff7428;
    color: #111111;
    border: 1px solid #ff7428;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.ed-cd-btn-primary:hover {
    background: #f56720;
    border-color: #f56720;
}

/* Secondary button */
.ed-cd-btn-secondary {
    background: #ffffff;
    color: #5f687b;
    border: 1px solid #dde1e8;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.ed-cd-btn-secondary:hover {
    background: #f7f8fa;
    border-color: #cfd5df;
}

/* Step Actions */
.ed-cd-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid #e8eaf0;
}

/* Shared action button alignment */
.ed-cd-step-actions .next-step,
.ed-cd-step-actions .prev-step,
.ed-cd-step-actions #ed-cd-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
    text-shadow: none !important;
}

/* Back button */
.ed-cd-step-actions .prev-step {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 10px 10px 10px 0;
    color: #5f687b;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.ed-cd-step-actions .prev-step:hover {
    background: transparent;
    color: #11182b;
}

/* Next buttons */
.ed-cd-step-actions .next-step {
    min-width: 175px;
    padding: 12px 22px;
    background: #ff7428;
    border: 1px solid #ff7428;
    border-radius: 10px;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
}

.ed-cd-step-actions .next-step:hover {
    background: #f56720;
    border-color: #f56720;
}

/* First step has no Back button */
.ed-cd-form-step[data-step="1"] .ed-cd-step-actions {
    justify-content: flex-end;
}

/* Submit button */
.ed-cd-step-actions #ed-cd-submit-btn {
    min-width: 175px;
    padding: 12px 22px;
    background: #ff7428;
    border: 1px solid #ff7428;
    border-radius: 10px;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
}

.ed-cd-step-actions #ed-cd-submit-btn:hover {
    background: #f56720;
    border-color: #f56720;
}

/* Loading state */
.ed-cd-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Invalid form input indicators */
.ed-cd-input.is-invalid,
input[required].is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.20) !important;
}

/* Custom inline notice framework */
.ed-cd-error-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #fff1f1;
    border-left: 4px solid #dc3545;
    color: #b42318;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 0 10px 10px 0;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}


/* Step Header Layout */
.ed-cd-step-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaf0;
}

.ed-cd-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ed-cd-header-top .ed-cd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #11182b;
    margin: 0;
    border-bottom: none; /* Reset existing h2 border if overriding */
    padding-bottom: 0;
}

.ed-cd-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #f0f1f4;
    color: #5f687b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ed-cd-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #626b7e;
}

/* Mobile Adjustments */
@media (max-width: 500px) {
    .ed-cd-header-top {
        align-items: flex-start;
    }
    
    .ed-cd-header-top .ed-cd-title {
        font-size: 1.25rem;
    }
}

/* Form Footer Trust Indicators */
.ed-cd-form-footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8eaf0;
    font-size: 13px;
    font-weight: 500;
    color: #5f687b;
}

.ed-cd-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ed-cd-check-icon {
    color: #10b981; /* Accent green */
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* Mobile Responsiveness */
@media (max-width: 500px) {
    .ed-cd-form-footer-trust {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* Responsive */
@media (max-width: 500px) {

    .ed-cd-form-container {
        padding: 20px;
    }

    .ed-cd-form-row,
    .ed-cd-form-row.col-3,
    .ed-cd-form-row.col-2,
    .ed-cd-form-row.col-1 {
        grid-template-columns: 1fr;
    }

    .ed-cd-radio-group {
        flex-direction: column;
    }

    .ed-cd-radio-group label {
        width: 100%;
    }

    .ed-cd-step-actions {
        gap: 10px;
    }

    .ed-cd-step-actions .next-step,
    .ed-cd-step-actions #ed-cd-submit-btn {
        flex: 1;
        min-width: 0;
    }

    .ed-cd-step-actions .prev-step {
        flex: 0 0 auto;
    }
}


.ed-cd-stop-group {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.pac-container {
    z-index: 9999999999999 !important;
}

.ed-cd-form-group .select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.ed-cd-form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-left: 12px;
}
.ed-cd-form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

/* Container positioning for the pseudo-element overlay */
.select2-container--default .select2-selection--single {
    position: relative;
}

/* Loading overlay over the Select2 rendered box */
.select2-container.select-is-loading .select2-selection__rendered {
    visibility: hidden; /* Hide placeholder/selected text while loading */
}

.select2-container {
    z-index: 999999999999999;
}

.select2-container.select-is-loading .select2-selection--single::after {
    content: "Loading...";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-style: italic;
    pointer-events: none;
    z-index: 2;
}

.ed-cd-form-row.ed-cd-grid-equal {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ed-cd-form-row.col-3.ed-cd-grid-equal {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Ensure Select2 within this specific class clips overflow with ellipsis */
.ed-cd-grid-equal .select2-container {
    width: 100% !important;
    min-width: 0;
}

.ed-cd-grid-equal .select2-selection__rendered {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.ed-cd-form-row.ed-cd-form-row-vehicle{
    gap:0px;
}