/* Resto Reservations - Front-end styles */

.resto-resa-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}

.resto-resa-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
}

.resto-resa-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.resto-resa-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.resto-resa-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.resto-resa-field label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.resto-resa-field .required {
    color: #dc2626;
}

.resto-resa-field input,
.resto-resa-field select,
.resto-resa-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.15s;
    background: #fff;
    box-sizing: border-box;
}

.resto-resa-field input:focus,
.resto-resa-field select:focus,
.resto-resa-field textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.resto-resa-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.resto-resa-double small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

/* Bloc date + créneaux */
.resto-resa-datetime {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.resto-resa-hint {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.resto-resa-error {
    color: #dc2626;
    font-size: 14px;
}

.resto-resa-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.resto-resa-slot {
    padding: 10px 16px;
    border: 1.5px solid #4f46e5;
    background: #fff;
    color: #4f46e5;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.resto-resa-slot:hover:not(.disabled) {
    background: #eef2ff;
}

.resto-resa-slot.selected {
    background: #4f46e5;
    color: #fff;
}

.resto-resa-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #9ca3af;
}

.resto-resa-submit-row {
    text-align: center;
    margin-top: 24px;
}

.resto-resa-submit {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.resto-resa-submit:hover {
    background: #4338ca;
}

.resto-resa-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resto-resa-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
}

.resto-resa-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.resto-resa-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.resto-resa-message ul {
    margin: 8px 0 0 20px;
}

/* Responsive */
@media (max-width: 640px) {
    .resto-resa-row,
    .resto-resa-datetime,
    .resto-resa-double {
        grid-template-columns: 1fr;
    }
}
