/* Reset */
.yacht-booking-container * {
    box-sizing: border-box;
}

.calendar-wrapper .head {
	text-align: center;
	padding-bottom: 2rem;
}

/* Kalendarz */
.calendar-wrapper {
    background: #F2F7FB;
    padding: 5rem 0;
}

.calendar-wrapper .container {
    padding: 0 10%;
}


.hidden-datepicker {
    display: none !important;
}

#calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

#current-months {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
}

.nav-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.nav-btn:hover {
    background: #2980b9;
}

.nav-btn.disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Kontener 2 miesięcy */
.two-month-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .two-month-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Pojedynczy miesiąc */
.month-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.month-header {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.month-calendar {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* Dni */
.calendar-day-header {
    padding: 10px 5px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
    border-bottom: 2px solid #eee;
}

.calendar-day {
    padding: 12px 5px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.available {
    background: #DCFCE7;
    color: #333;
    cursor: pointer;
}

.calendar-day.available:hover {
    background: #e3f2fd;
    border-color: #bbdefb;
}

.calendar-day.booked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.calendar-day.pending {
    background: #fff3e0;
    color: #ef6c00;
    cursor: not-allowed;
}

.calendar-day.past {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #2196f3 !important;
    color: white !important;
    font-weight: bold;
    border-color: #2196f3 !important;
}

.calendar-day.range {
    background: #bbdefb !important;
    color: #1976d2 !important;
    border-color: #bbdefb !important;
}

.calendar-day.today {
    border: 2px solid #27ae60;
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* Legenda */
.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available { background: #dcfce7; }
.legend-color.booked { background: #ffebee; }
.legend-color.pending { background: #fff3e0; }
.legend-color.selected { background: #2196f3; }

/* Formularz */
.form-wrapper {
	padding: 5rem 0;
}

.form-wrapper .head {
	padding-bottom: 3rem;
}

.booking-form-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
}

.booking-form-section h3 {
    color: #3498db;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

/* .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
} */

.selected-dates-container {
    display: flex;
    gap: 10px;
}

#selected-dates-display {
    flex: 1;
    background: #f8f9fa;
    cursor: pointer;
}

.datepicker-btn {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.datepicker-btn:hover {
    background: #2980b9;
}


.submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Komunikaty */
#form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
}

/* Flatpickr */
.flatpickr-calendar {
    font-family: Arial, sans-serif !important;
    border-radius: 10px !important;
}

.flatpickr-day.selected {
    background: #2196f3 !important;
    border-color: #2196f3 !important;
}

.flatpickr-day.inRange {
    background: #bbdefb !important;
    border-color: #bbdefb !important;
}

/* Poprawka dla flatpickr - lepsze zaznaczenie dat */
.flatpickr-day.selected.startRange, 
.flatpickr-day.selected.endRange {
    background: #2196f3 !important;
    border-color: #2196f3 !important;
    color: white !important;
    font-weight: bold !important;
}

.flatpickr-day.inRange {
    background: #bbdefb !important;
    border-color: #bbdefb !important;
}

/* Poprawka dla zaznaczonych dat w naszym kalendarzu */
.calendar-day.selected {
    background: #2196f3 !important;
    color: white !important;
    font-weight: bold !important;
    position: relative;
    z-index: 2;
}

.calendar-day.selected::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid white;
    border-radius: 6px;
    z-index: 1;
}

.calendar-day.range {
    background: #bbdefb !important;
    color: #1976d2 !important;
    position: relative;
}

/* Poprawka dla tooltipów */
.calendar-day[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    pointer-events: none;
}

.calendar-day[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: 3px;
    z-index: 1000;
}

/* Loading state - UKRYTY! */
.loading-state {
    display: none !important;
}

/* Przycisk Wyczyść */
.clear-btn {
    padding: 12px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* Instrukcja */
.instruction {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #1565c0;
}

.instruction h4 {
    margin-top: 0;
    color: #1565c0;
}

.instruction ul {
    margin: 10px 0;
    padding-left: 20px;
}

.instruction li {
    margin-bottom: 5px;
}


/* Contact list */
.contact-list {
	display: flex;
	gap: 3rem;
	padding-top: 40%;
}

.contact-list .item {
	display: flex;
	flex-direction: column;
}

.contact-list .item i {
	font-size: 2rem;
	color: var(--color-2);
}

/* Styl dla kalendarza jako okno modalne */
body > .flatpickr-calendar.open {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 99999 !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Opcjonalnie: dodanie przyciemnienia tła */
body.flatpickr-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}


@media (max-width: 768px) {
	.booking-form-section {
		padding: 0;
	}
}

@media (max-width: 576px) {
	#current-months {
		padding: 0 1rem;
	}
}
