/* Piero Restaurant - Booking Frontend */

.piero-booking-wrapper {
    max-width: 520px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    font-family: inherit;
}

/* Steps header */
.piero-steps {
    display: flex;
    background: #1a1a1a;
    padding: 0;
    margin: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    position: relative;
    letter-spacing: .02em;
    transition: color .2s;
}

.step.active {
    color: #fff;
    font-weight: 600;
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: #b8925a;
    border-radius: 2px 2px 0 0;
}

/* Step content */
.piero-step-content {
    display: none;
    padding: 28px 24px 20px;
    min-height: 280px;
}

.piero-step-content.active {
    display: block;
}

.piero-step-content h3 {
    margin: 0 0 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #999;
}

/* Fields */
.piero-field {
    margin-bottom: 16px;
}

.piero-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.piero-field input,
.piero-field select,
.piero-field textarea {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #222 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color .15s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
}

.piero-field input:focus,
.piero-field select:focus,
.piero-field textarea:focus {
    outline: none;
    border-color: #b8925a;
    box-shadow: 0 0 0 3px rgba(184,146,90,.08);
}

.piero-field input::placeholder,
.piero-field textarea::placeholder {
    color: #ccc;
}

/* Checkbox privacy */
.piero-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    color: #888;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.piero-checkbox-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: auto !important;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    padding: 0 !important;
    accent-color: #b8925a;
}

.piero-checkbox-label a {
    color: #b8925a;
    text-decoration: none;
    text-transform: none;
}

.piero-checkbox-label a:hover {
    text-decoration: underline;
}

/* Time slots */
.piero-time-section h4 {
    margin: 18px 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #999;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.piero-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.piero-time-slot {
    position: relative;
    cursor: pointer;
}

.piero-time-slot input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.piero-time-slot .time-display {
    display: block;
    padding: 11px 6px;
    text-align: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s;
    background: #fff;
    color: #333;
}

.piero-time-slot:hover .time-display {
    border-color: #b8925a;
    background: #fdf7ee;
    color: #b8925a;
}

.piero-time-slot input:checked + .time-display {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Summary */
.piero-summary {
    background: #fdf7ee;
    border: 1px solid #e8d8b8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
}

.piero-summary h4 {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b8925a;
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-grid div {
    font-size: 14px;
    color: #555;
}

.summary-grid strong {
    color: #222;
    margin-right: 4px;
}

/* Navigation */
.piero-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    gap: 10px;
}

/* Buttons */
.piero-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .01em;
}

.piero-btn-next,
.piero-btn-submit {
    background: #1a1a1a;
    color: #fff;
}

.piero-btn-next:hover:not(:disabled),
.piero-btn-submit:hover:not(:disabled) {
    background: #333;
}

.piero-btn-prev {
    background: transparent;
    color: #999;
    border: 1px solid #e8e8e8;
}

.piero-btn-prev:hover {
    border-color: #bbb;
    color: #555;
}

.piero-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Messages */
.piero-message {
    margin: 16px 0;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.piero-message.error {
    background: #fdf0f0;
    color: #a02020;
    border: 1px solid #f0c8c8;
}

.piero-message.success {
    background: #f0fdf4;
    color: #206040;
    border: 1px solid #c8e8d8;
}

/* Success screen */
.piero-success {
    text-align: center;
    padding: 48px 24px;
}

.piero-success h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.piero-success p {
    margin: 8px 0;
    color: #888;
    font-size: 14px;
}

/* Loading */
.piero-loading {
    text-align: center;
    padding: 40px;
}

.piero-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #b8925a;
    border-radius: 50%;
    animation: pbSpin 1s linear infinite;
    margin: 0 auto 14px;
}

@keyframes pbSpin {
    to { transform: rotate(360deg); }
}

/* Firma */
.piero-signature {
    font-size: 9px;
    color: #ddd;
    text-align: right;
    padding: 0 12px 8px;
}

/* Disabled */
.piero-booking-disabled {
    max-width: 520px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-align: center;
    color: #888;
    position: relative;
    font-family: inherit;
}

/* Mobile */
@media (max-width: 600px) {
    .piero-booking-wrapper {
        margin: 12px;
        max-width: none;
    }

    .piero-step-content {
        padding: 20px 16px 16px;
    }

    .piero-navigation {
        flex-direction: column;
    }

    .piero-btn {
        width: 100%;
        text-align: center;
    }
}