section h2 {
    text-align: center;
    margin-top: 3%;
    font-size: 1.8em;
}


/* FORMULÁŘ */

.reservation-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.form-grid .full-width {
    grid-column: 1 / 3;
}

.form-grid div {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: 600;
}

input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}


/* TLAČÍTKO */

button[type="submit"] {
    padding: 12px;
    font-size: 16px;
    background-color: #18b3b9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button[type="submit"]:hover {
    background-color: #18b4b9bd;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

button[type="submit"]:disabled {
  background-color: #159a9f;
  cursor: not-allowed;
}

.submit-wrapper {
    text-align: center;
}

#priceSummary {
    text-align: center;
    font-size: 18px;
}

#nightsSummary {
    text-align: center;
    font-size: 18px;
}

#gdprConsent {
    text-align: center;
}

.warning-message {
    color: #b10000;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.calendar-navigation button {
    background-color: #18b3b9;
    color: white;
    border: none;
    padding: 5px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-navigation button:first-child {
    margin-right: 250px;
}


/* KALENDÁŘ */

#calendarLayout {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

#calendarLayout>div {
    flex: 1 1 300px;
    max-width: 350px;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 12px;
    background-color: #fafafa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#calendarLayout h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    font-family: sans-serif;
    font-size: 15px;
}

th {
    color: #555;
    padding-bottom: 5px;
}

td {
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

td .price {
    font-size: 0.75em;
    margin-top: 4px;
}


/* Stavové třídy */

td.available {
    background-color: #e6ffe6;
    color: #0a430a;
    font-weight: bold;
}

td.blocked,
td.disabled {
    color: #ccc;
    background-color: #f9f9f9;
}

td:hover.available {
    background-color: #b5f2b5;
    cursor: pointer;
}

td.selected-start,
td.selected-end,
td.price {
    background-color: #007bff !important;
    color: white !important;
}

td.in-range {
    background-color: #cce7ff;
    color: #003e7e;
}

/* Media */
@media (max-width: 600px) {

    section h2 {
        font-size: 1.4em;
        margin-top: 0px;
    }

    .reservation-form {
        padding: 20px;
        gap: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-grid .full-width {
        grid-column: auto;
    }

    input {
        font-size: 14px;
        padding: 9px 10px;
    }
}

@media (max-width: 500px) {
    .calendar-navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        margin: 0 auto;
        width: 100%;
    }

    .calendar-navigation button {
        flex: 1;
        padding: 8px 0;
        font-size: 16px;
    }

    .calendar-navigation button:first-child {
        margin-right: 0;
    }
}
