/* Step Container */
.step-container {
    display: none;
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    min-height: 60vh;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.step-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.step-content>p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Dropdowns Row */
.dropdowns-row {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
}

.dropdown-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.dropdown-group select {
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dropdown-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.2);
    background-color: #f9f9ff;
}

.buttonfirst-container {
    margin-top: 20px;
    text-align: right;
}

#nextBtnFirst {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    /* keep layout stable */
    transition: background-color 0.2s;
}

#nextBtnFirst:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Calendar Container */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
    max-width: 600px;
}

/* Month Navigation Header */
.calendar-nav-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.calendar-nav-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.calendar-nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

.calendar-title {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

.month-name {
    display: block;
    font-size: 1.5rem;
}

.year-indicator {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Day Headers Row */
.calendar-header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    padding: 0.8rem;
    background: #667eea;
    color: white;
    border-radius: 6px;
}

/* Calendar Days */
.calendar-day {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.calendar-day:hover:not(.unavailable):not(.empty) {
    border-color: #667eea;
    background: #f9f9ff;
}

.calendar-day.unavailable {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.calendar-day.today {
    background: rgb(240, 227, 43);
}

.calendar-day.available:active {
    transform: scale(0.95);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.calendar-day-name {
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    background: #f3f3f3;
}

.calendar-day.empty {
    background: transparent;
    cursor: not-allowed;
}

/* Hours Grid */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 600px;
}

.hour-slot {
    padding: 1.2rem;
    position: relative;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgb(40, 189, 10);
}

.hour-slot:hover {
    border-color: #667eea;
    background: #f9f9ff;
}

.hour-slot.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.hour-slot.unavailable {
    background: #050505;
    color: #999;
    border-color: #ddd;
}

.hour-slot.pending {
    background: #554d4d;
    color: #999;
    border-color: #ddd;
}

.hour-slot.booked {
    background: #cc0000;
    color: #999;
    border-color: #ddd;
}

.hour-slot.unavailable::after {
    content: "Zasedeno";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hour-slot.booked::after {
    content: "Rezervirano";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hour-slot.pending::after {
    content: "Nepotrjena rezervacija";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hour-slot.unavailable:hover::after {
    opacity: 1;
}

.hour-slot.pending:hover::after {
    opacity: 1;
}
.hour-slot.booked:hover::after {
    opacity: 1;
}

/* Reservation Summary */
.reservation-summary {
    background: #f0f0f0;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.reservation-summary p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.reservation-summary p:last-child {
    margin-bottom: 0;
}

.reservation-summary strong {
    color: #333;
}

.reservation-summary span {
    color: #667eea;
    font-weight: 600;
}

/* Inquiry Form */
.inquiry-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.2);
    background-color: #f9f9ff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.back-btn,
.next-btn,
.submit-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn {
    background: #999;
    color: white;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: #777;
    transform: translateY(-2px);
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 2rem;
    width: 100%;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Thank You */
.thank-you-content {
    text-align: center;
    padding: 4rem 2rem !important;
}

.thank-you-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.thank-you-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ecf0f1;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner {
        height: 200px;
        padding-right: 15%;
    }

    .logo {
        height: 80%;
    }

    .dropdowns-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.3rem;
    }

    .calendar-day {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .hours-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.8rem;
    }

    .hour-slot {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .step-content h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 180px;
        padding-right: 10%;
    }

    .nav-buttons {
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: 1 1 50%;
        font-size: 0.8rem;
        padding: 0.7rem;
    }

    .step-container {
        padding: 1.5rem 1rem;
    }

    .step-content {
        padding: 1rem;
    }

    .step-content h2 {
        font-size: 1.3rem;
    }

    .calendar-day {
        padding: 0.7rem;
        font-size: 0.8rem;
    }

    .hour-slot {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .back-btn,
    .next-btn,
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}