/* wrap */
.le-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

/* step indicators */
.le-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.le-step {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    border-bottom: 3px solid #e5e5e5;
    transition: all .2s;
}
.le-step.active {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* panels */
.le-panel { display: none; }
.le-panel.active { display: block; }

.le-panel h2 {
    margin: 0 0 24px;
    font-size: 22px;
}

/* fields */
.le-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.le-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}
.le-field input,
#le-card-element {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color .2s;
}
.le-field input:focus {
    outline: none;
    border-color: #1a1a1a;
}
#le-card-element {
    padding: 12px;
}

/* row layout for side-by-side fields */
.le-row {
    display: flex;
    gap: 16px;
}
.le-row .le-field { flex: 1; }

/* address picker — shown when search returns multiple matches */
.le-address-picker {
    margin: 8px 0 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.le-address-option {
    padding: 12px 14px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.le-address-option:last-child { border-bottom: none; }
.le-address-option:hover { background: #f7f7f7; }

/* errors */
.le-error {
    font-size: 12px;
    color: #d00;
    margin-top: 4px;
    min-height: 16px;
}
.le-error--global {
    margin: 8px 0;
    font-size: 13px;
}

/* buttons */
.le-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
}
.le-btn:hover { background: #333; }
.le-btn--back {
    background: transparent;
    color: #555;
    padding-left: 0;
}
.le-btn--back:hover { background: transparent; color: #000; }
.le-btn--select {
    margin-top: 12px;
    width: 100%;
}

/* plan cards */
.le-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.le-plan {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color .2s;
}
.le-plan:hover { border-color: #1a1a1a; }
.le-plan h3 { margin: 0 0 8px; font-size: 16px; }
.le-plan-rate { font-size: 24px; font-weight: 700; margin: 8px 0; }
.le-plan-term { font-size: 13px; color: #777; }

/* divider between sections */
.le-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

/* radio buttons */
.le-radio-group { display: flex; gap: 20px; margin-top: 6px; }
.le-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.le-radio input { margin: 0; }

/* terms checkbox */
.le-field--checkbox { margin-top: 16px; }
.le-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.4; }
.le-checkbox input { margin-top: 2px; flex-shrink: 0; }
.le-checkbox a { color: #1a1a1a; }

/* address picker label */
.le-picker-label { font-size: 13px; font-weight: 600; margin: 0 0 4px; padding: 10px 14px 0; color: #555; }

/* success */
.le-success { text-align: center; padding: 40px 0; }
.le-success h2 { font-size: 26px; margin-bottom: 12px; }

/* loading overlay */
.le-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.75);
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.le-loading.visible { display: flex; }
.le-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

/* embedded payment iframe */
#le-iframe-wrap {
    margin-bottom: 1.5rem;
}
.le-iframe-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}
#le-payment-iframe {
    width: 100%;
    min-height: 450px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }