/* --------------------------------------------
   ReWear 360 – Multi-step Booking Form Styles
   -------------------------------------------- */

/* Wrapper */
.rewear360-booking-wrapper {
    
    margin: 40px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header */
.rewear360-header {
    text-align: center;
    margin-bottom: 24px;
}

.rewear360-header h2 {
    font-size: 26px;
    margin: 0 0 6px;
    font-weight: 700;
    color: #0f172a;
}

.rewear360-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

/* Progress bar */
.rewear360-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 8px;
}

.rewear360-step-indicator {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    position: relative;
}

.rewear360-step-indicator::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.rewear360-step-indicator-inner {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
    background: #ffffff;
    z-index: 1;
}

.rewear360-step-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 16px;
}

.rewear360-step-label {
    font-weight: 600;
    font-size: 12px;
}

.rewear360-step-indicator.is-active .rewear360-step-icon {
    background: #059669;
    color: #ffffff;
}

.rewear360-step-indicator.is-active .rewear360-step-label {
    color: #059669;
}

.rewear360-step-indicator.is-complete .rewear360-step-icon {
    background: #10b981;
    color: #ffffff;
}

/* Step visibility */
.rewear360-step {
    display: none;
}

.rewear360-step.is-current {
    display: block;
}

/* Grid layout */
.rewear360-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* Fields */
.rewear360-field {
    margin-bottom: 14px;
}

.rewear360-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.rewear360-field input,
.rewear360-field select,
.rewear360-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    box-sizing: border-box;
    background: #ffffff;
}

.rewear360-field textarea {
    min-height: 90px;
    resize: vertical;
}

/* Radio Card Options */
.rewear360-radio-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.rewear360-radio-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f9fafb;
    transition: 0.15s;
}

.rewear360-radio-card:hover {
    border-color: #0d9488;
}

.rewear360-radio-card input {
    margin-top: 4px;
}

.rewear360-radio-card strong {
    display: block;
    margin-bottom: 4px;
}

.rewear360-radio-card.is-selected {
    border-color: #059669;
    background: #ecfdf5;
}

/* Buttons */
.rewear360-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 10px;
}

.rewear360-btn {
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.rewear360-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.rewear360-btn-secondary:hover {
    background: #e5e7eb;
}

.rewear360-btn-primary {
    background: #059669;
    color: #ffffff;
}

.rewear360-btn-primary:hover {
    background: #047857;
}

.rewear360-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error */
.rewear360-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

/* Review section */
.rewear360-review-group {
    padding: 14px;
    border-radius: 12px;
    background: #f9fafb;
    margin-bottom: 14px;
}

.rewear360-review-group h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.rewear360-review-line {
    font-size: 14px;
    color: #374151;
}

/* Success */
.rewear360-success {
    text-align: center;
    padding: 32px 16px;
}

.rewear360-success-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.rewear360-success h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.rewear360-success p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 700px) {
    .rewear360-booking-wrapper {
        margin: 16px;
        padding: 20px;
    }

    .rewear360-field-grid {
        grid-template-columns: 1fr;
    }

    .rewear360-radio-group {
        grid-template-columns: 1fr;
    }

    .rewear360-footer {
        flex-direction: column-reverse;
    }

    .rewear360-btn {
        width: 100%;
        justify-content: center;
    }
}
