/* Alap konténer */
.table-reservation-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group-date-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Címsor */
.table-reservation-form-container h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
    text-align: center;
}

/* Form csoportok */
.table-reservation-form .form-group {
    margin-bottom: 24px;
    position: relative;
}

/* Címkék */
.table-reservation-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: "span", Sans-serif;
    font-weight: 600;
    color: #2A2A2A;
}

/* Kötelező mező jelölése */
.table-reservation-form .required {
    color: #f44336;
    margin-left: 4px;
}

/* Input mezők */
.table-reservation-form input[type="text"],
.table-reservation-form input[type="email"],
.table-reservation-form input[type="tel"],
.table-reservation-form input[type="number"],
.table-reservation-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    color: #333;
}

/* Fókuszált mezők */
.table-reservation-form input[type="text"]:focus,
.table-reservation-form input[type="email"]:focus,
.table-reservation-form input[type="tel"]:focus,
.table-reservation-form input[type="number"]:focus,
.table-reservation-form textarea:focus {
    border-color: #5860df;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(88, 96, 223, 0.15);
    outline: none;
}

/* Dátum és időválasztó mezők */
.date-picker,
.time-picker {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}

.time-picker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>');
}

/* Küldés gomb */
.table-reservation-form .submit-button {
    border: 1px solid #013373;
    padding: 14px 35px !important;
    border-radius: 65px;
    background-color: #013373 !important;
    display: block;
    font-family: "span", Sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white !important;
    text-align: center;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.table-reservation-form .submit-button:hover {
    background-color: #4a50c8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 96, 223, 0.3);
}

.table-reservation-form .submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(88, 96, 223, 0.3);
}

.table-reservation-form .submit-button:disabled {
    background-color: #d1d1d1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Üzenetek */
.reservation-message {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 10px;
    display: none;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.reservation-message.success {
    display: block;
    background-color: #f0f7ff;
    color: #0070f3;
    border: 1px solid #d1e5ff;
}

.reservation-message.error {
    display: block;
    background-color: #fff0f0;
    color: #f44336;
    border: 1px solid #ffd1d1;
}

/* Flatpickr testreszabása - modern 2025 - minden elem felülírása */
html body .flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    background: #fff !important;
    padding: 16px !important;
    width: 320px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    /* Szürke csík eltávolítása */
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* A lapozók javítása */
html body .flatpickr-months {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

html body .flatpickr-month {
    background: transparent !important;
    color: #333 !important;
    fill: #333 !important;
    height: 40px !important;
    line-height: 1 !important;
    text-align: center !important;
    position: relative !important;
    user-select: none !important;
    overflow: visible !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Navigációs nyilak javítása */
html body .flatpickr-prev-month, 
html body .flatpickr-next-month {
    background-color: #f5f5f5 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 8px !important;
    top: 0 !important;
    text-align: center !important;
    z-index: 3 !important;
}

html body .flatpickr-prev-month:hover, 
html body .flatpickr-next-month:hover {
    background-color: #ebebeb !important;
}

html body .flatpickr-prev-month svg,
html body .flatpickr-next-month svg {
    fill: #333 !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    pointer-events: none !important;
}

html body .flatpickr-current-month {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 !important;
    position: relative !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    left: auto !important;
    transform: none !important;
}

html body .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: none !important;
    padding: 0 !important;
    outline: none !important;
    font-size: 16px !important;
    line-height: inherit !important;
    color: inherit !important;
    background-color: transparent !important;
    height: auto !important;
    cursor: pointer !important;
    margin: 0 !important;
}

html body .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: transparent !important;
}

html body .flatpickr-current-month input.cur-year {
    font-weight: 600 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: none !important;
    padding: 0 4px !important;
    outline: none !important;
    font-size: 16px !important;
    line-height: inherit !important;
    color: inherit !important;
    background-color: transparent !important;
    height: auto !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: 4ch !important;
    max-width: 4ch !important;
    box-sizing: content-box !important;
    text-align: center !important;
}

html body .numInputWrapper {
    position: relative !important;
    height: auto !important;
    display: inline-block !important;
}

html body .numInputWrapper span {
    display: none !important; /* Elrejtjük a nyilakat az évszámnál */
}

html body .flatpickr-current-month span.cur-month {
    font-weight: 600 !important;
    margin-right: 5px !important;
}

html body .flatpickr-current-month .numInputWrapper {
    width: auto !important;
    display: inline-block !important;
}

/* Heteket mutató sor */
html body .flatpickr-weekdays {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

html body .flatpickr-weekdaycontainer {
    display: flex !important;
    width: 100% !important;
    justify-content: space-around !important;
}

html body span.flatpickr-weekday {
    font-weight: 500 !important;
    color: #666 !important;
    font-size: 13px !important;
    margin: 0 !important;
    background: transparent !important;
    line-height: 40px !important;
    padding: 0 !important;
    height: 40px !important;
    flex: 1 !important;
    text-align: center !important;
}

/* Napok konténer */
html body .flatpickr-days {
    display: flex !important;
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    outline: none !important;
    max-width: 100% !important;
    border-left: none !important;
    border-right:  none !important;
}

html body .dayContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    outline: none !important;
    justify-content: space-around !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Egyes napok */
html body .flatpickr-day {
    height: 40px !important;
    line-height: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    color: #333 !important;
    border-radius: 50% !important;
    border: none !important;
    margin: 2px !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    position: relative !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    background: none !important;
}

html body .flatpickr-day:hover {
    background: #f0f0f0 !important;
    border-color: transparent !important;
}

html body .flatpickr-day.today {
    background-color: transparent !important;
    color: #5860df !important;
    font-weight: 600 !important;
    border: none !important;
    position: relative !important;
    z-index: 2 !important;
}

html body .flatpickr-day.today:before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #5860df !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: -1 !important;
}

/* Kiválasztott nap alapos újraformázása */
html body .flatpickr-day.selected, 
html body .flatpickr-day.startRange, 
html body .flatpickr-day.endRange,
html body .flatpickr-day.selected.inRange,
html body .flatpickr-day.startRange.inRange,
html body .flatpickr-day.endRange.inRange,
html body .flatpickr-day.selected:focus,
html body .flatpickr-day.startRange:focus,
html body .flatpickr-day.endRange:focus,
html body .flatpickr-day.selected:hover,
html body .flatpickr-day.startRange:hover,
html body .flatpickr-day.endRange:hover,
html body .flatpickr-day.selected.prevMonthDay,
html body .flatpickr-day.startRange.prevMonthDay,
html body .flatpickr-day.endRange.prevMonthDay,
html body .flatpickr-day.selected.nextMonthDay,
html body .flatpickr-day.startRange.nextMonthDay,
html body .flatpickr-day.endRange.nextMonthDay {
    background-color: #5860df !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 2 !important;
}

html body .flatpickr-day.selected:hover, 
html body .flatpickr-day.startRange:hover, 
html body .flatpickr-day.endRange:hover {
    background-color: #4a50c8 !important;
    color: #fff !important;
}

html body .flatpickr-day.disabled, 
html body .flatpickr-day.disabled:hover, 
html body .flatpickr-day.prevMonthDay, 
html body .flatpickr-day.nextMonthDay, 
html body .flatpickr-day.notAllowed,
html body .flatpickr-day.notAllowed.prevMonthDay,
html body .flatpickr-day.notAllowed.nextMonthDay {
    color: #ccc !important;
    background: transparent !important;
    cursor: default !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* Időválasztó testreszabása */
html body .flatpickr-time {
    border-radius: 0 0 12px 12px !important;
    border-top: 1px solid #ebebeb !important;
    margin-top: 4px !important;
    padding: 12px 0 !important;
    height: auto !important;
    max-height: none !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 40px !important;
}

html body .flatpickr-time input {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    height: 40px !important;
    line-height: 40px !important;
    box-shadow: none !important;
    padding: 0 8px !important;
    background: transparent !important;
    border: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    margin: 0 !important;
    position: relative !important;
    display: inline-block !important;
    text-align: center !important;
}

html body .flatpickr-time .numInputWrapper {
    width: 45% !important;
    height: 40px !important;
    display: inline-block !important;
    position: relative !important;
}

html body .flatpickr-time .flatpickr-am-pm {
    width: 10% !important;
    height: 40px !important;
    line-height: 40px !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-align: center !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .flatpickr-time input:focus,
html body .flatpickr-time .flatpickr-am-pm:focus {
    background: #f0f0f0 !important;
    outline: none !important;
}

html body .numInput.cur-hour, 
html body .numInput.cur-minute {
    font-weight: 600 !important;
}

html body .arrowUp,
html body .arrowDown {
    border-bottom-color: #666 !important;
    border-top-color: #666 !important;
}

/* Biztosítjuk, hogy a kijelölő körök megfelelően jelenjenek meg */
html body .flatpickr-day.selected:before,
html body .flatpickr-day.startRange:before,
html body .flatpickr-day.endRange:before {
    content: none !important;
    display: none !important;
}

/* Szürke csíkok kijavítása */
html body .flatpickr-innerContainer {
    display: block !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

html body .flatpickr-rContainer {
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Modal alapstílus */
#reservation-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Ha megnyílik */
#reservation-success-modal.show {
    display: flex;
}

/* Modal tartalom doboz */
#reservation-success-modal .modal-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

/* Modal címsor */
#reservation-success-modal h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #013373;
}

/* Modal szöveg */
#reservation-success-modal p {
    margin-bottom: 30px;
    font-size: 18px;
    color: #555;
}

/* Bezárás gomb */
#close-modal {
    background-color: #013373;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#close-modal:hover {
    background-color: #4a50c8;
}

/* Animáció */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal nyitáskor tiltsuk a body scrollt */
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* Mobilbarát beállítások */
@media screen and (max-width: 600px) {
    .table-reservation-form-container {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .table-reservation-form input[type="text"],
    .table-reservation-form input[type="email"],
    .table-reservation-form input[type="tel"],
    .table-reservation-form input[type="number"],
    .table-reservation-form textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    .table-reservation-form .submit-button {
        padding: 16px;
    }
    
    html body .flatpickr-calendar {
        width: 300px !important;
    }
    
    html body .flatpickr-day {
        height: 38px !important;
        line-height: 38px !important;
        width: 38px !important;
    }
}