/**
 * Frontend styles for FlowRD Table Reservation.
 * Simplified design for a cleaner user experience.
 */

/* General container */
#str-frontend-app {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    gap: 20px;
}

/* Titles and subtitles */
.str-step-title {
    font-size: 1.5rem;
    color: #000!important;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.str-summary-text {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 28px!important;
}

/* Loading spinner */
#str-loading {
    text-align: center;
    padding: 40px;
}

.str-loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Error messages */
#str-error-message {
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    padding: 10px;
    background: #fbdde2;
    border-radius: 5px;
}

/* Calendar */
#str-frontend-calendar {
    flex-grow: 1;
}

.str-calendar-header {
    text-align: center;
    margin-bottom: 20px;
}

#str-full-name,#str-email,#str-phone,#str-guests,#str-special-requests{
	color:#50575e;
}

.str-calendar-month-year {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

.str-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 5px;
    color: #888;
}

.str-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.str-day {
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    color: #444;
}

.str-day:not(.str-day-disabled):hover {
    background-color: #b18222;
}

.str-day-disabled {
    background-color: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
}

.str-day-today {
    border: 2px solid #3498db;
}

.str-day-selected {
    background-color: #7b3a1b;
    color: #fff;
}

.str-empty {
    background: transparent;
    cursor: default;
}

/* Time slots */
#str-time-slots {
    margin-top: 20px;
}

.str-time-slot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.str-time-slot {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.str-time-slot:hover {
    background: #f0f0f0;
}

.str-time-slot.str-time-slot-selected {
    background: #2ecc71;
    color: #fff;
    border-color: #2ecc71;
}

/* Form */
.str-form-field {
    margin-bottom: 15px;
}

.str-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.str-form-field input, .str-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.str-form-field textarea {
    resize: vertical;
}

.str-submit-btn {
    width: 100%;
    padding: 15px;
    background: #e1ab27;
    color: #2a2c2f !important;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.str-submit-btn:hover {
    background: #030303;
    color: #fff !important;
}
