/* Base styles */
body {
    background: #f4f6f8;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.sps-container {
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    overflow: hidden;
}

/* Header */
.sps-title {
    text-align: center;
    color: #2b7a2b;
    /* dark green */
    font-size: 26px;
    font-weight: 600;
    margin: 10px 0 20px;
}

/* Notice Bar top */
.sps-notice {
    background: #fdfdfd;
    padding: 10px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    color: #444;
    font-size: 14px;
}

/* Progress indicator */
.sps-progress-container {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.sps-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.step .step-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.step.current .step-icon {
    background: #007bff;
    /* blue */
}

.step.current p {
    color: #222;
}

.step.done .step-icon {
    background: #2b7a2b;
    /* green */
    color: transparent;
    position: relative;
}

.step.done .step-icon::after {
    content: "✔";
    color: #fff;
    position: absolute;
    font-size: 14px;
}

.step.done p {
    color: #2b7a2b;
}

.step-line {
    width: 60px;
    height: 1px;
    background: #ddd;
}


/* Steps */
.form-step {
    display: none;
    padding: 10px 40px 30px;
    position: relative;
}

.form-step.active {
    display: block;
}

.step-container-centered {
    max-width: 400px;
    margin: 0 auto;
}

.step-heading {
    text-align: center;
    font-size: 20px;
    color: #222;
    margin: 0 0 5px 0;
}

.step-subheading {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin: 0 0 25px 0;
}

/* Grid Layout */
.sps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 10px;
}

.sps-left,
.sps-right {
    flex: 1;
    min-width: 300px;
}

/* Input Wrap using Fieldset */
.sps-input-wrap {
    margin-bottom: 20px;
}

.sps-fieldset {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 10px;
    margin: 0;
    transition: 0.2s border-color;
}

.sps-fieldset legend {
    font-size: 12px;
    color: #777;
    padding: 0 4px;
    margin-left: 5px;
}

.sps-fieldset input,
.sps-fieldset select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 5px 12px;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}

.sps-fieldset:focus-within {
    border-color: #359B35;
}

.sps-fieldset:focus-within legend {
    color: #359B35;
}

.sps-fieldset select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23777" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right center;
    cursor: pointer;
}

/* Margin utilities */
.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

/* Hints */
.input-hint {
    font-size: 12px;
    color: #777;
    margin: 0 0 15px 0;
}

.sps-disabled-group .sps-fieldset {
    background: #f9f9f9;
}


/* Buttons */
.btn-price-list {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit-disabled {
    background: #e0e0e0;
    color: #aaa;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 4px;
    width: 100%;
    font-weight: 500;
    cursor: not-allowed;
}

.btn-submit-disabled.ready {
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    background: #e0e0e0;
    color: #aaa;
    border: none;
    font-weight: 500;
}

.btn-block.ready {
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.btn-submit-green {
    background: #359B35;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit-green:hover {
    background: #2f8b2f;
}

.btn-clear-red {
    background: #C62828;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-clear-red:hover {
    background: #b02323;
}

.btn-back {
    background: transparent;
    border: 1px solid #9c27b0;
    color: #9c27b0;
    padding: 8px 24px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-back:hover {
    background: rgba(156, 39, 176, 0.05);
}

.step-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 50px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Form Actions */
.sps-form-actions-full {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.sps-form-actions-left {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.sps-form-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Saved Addresses Right Side */
.side-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 500;
}

.saved-address-box {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.saved-address-box.active {
    background: #f4fbf4;
    /* light green tint */
}

/* Custom Radio */
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #359B35;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    background: #fff;
}

.radio-label input:checked+.custom-radio::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.addr-text {
    font-size: 14px;
    color: #333;
}

.addr-actions {
    margin-left: 31px;
    display: flex;
    gap: 10px;
}

/* Create Address Right Side */
.create-addr-container {
    border: 1px solid #359B35;
    padding: 0;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.success-text {
    color: #359B35;
    font-weight: 500;
}

.create-addr-container .side-title {
    border-bottom: 1px solid #359B35;
    padding-bottom: 15px;
    margin: 15px 15px 0;
}

.create-addr-form {
    padding: 20px 15px;
}

/* Popup */
.confirm-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.confirm-box {
    background: #fff;
    width: 90%;
    max-width: 450px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.confirm-box h2 {
    font-size: 20px;
    color: #222;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.success-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.success-icon-svg {
    width: 100%;
    height: 100%;
}

.popup-msg {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.order-info {
    background: #fafafa;
    border-radius: 6px;
    padding: 15px 20px;
    text-align: left;
    margin-bottom: 25px;
    color: #444;
}

.order-info p {
    margin: 8px 0;
    font-size: 14px;
}

.order-id-green {
    color: #359B35;
    font-weight: 600;
}