/* Book for Kope - Reservation Widget Styles */

/* Reset button default styles */
button:focus,
button:active,
button:visited {
    outline: none !important;
    box-shadow: none !important;
}

.book-container {
    background-color: #2b2b2b;
    padding: 50px 20px;
    text-align: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.book-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 3px;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    color: #E9CC9D;
    font-family: Georgia, 'Times New Roman', serif;
}

.book-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.book-input {
    flex: 1;
    min-width: 130px;
    width: 100%;
    padding: 10px 0 12px 3px;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #E9CC9D !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #E9CC9D;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    outline: none !important;
    text-align: left !important;
}

.book-input:focus {
    outline: none !important;
    border-bottom-color: #E9CC9D !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.book-input:focus-visible {
    outline: none !important;
    border-bottom-color: #E9CC9D !important;
}

/* Placeholder styling - Default #E9CC9D */
.book-input::placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input::placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[type="text"]::placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[name="emri"]::placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[type="date"]::placeholder,
input[type="time"]::placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

/* Webkit browsers */
input[type="text"]::-webkit-input-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[name="emri"]::-webkit-input-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

/* Firefox */
input[type="text"]:-moz-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[type="text"]::-moz-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[name="emri"]:-moz-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[name="emri"]::-moz-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

/* IE/Edge */
input[type="text"]:-ms-input-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

input[name="emri"]:-ms-input-placeholder {
    color: #E9CC9D !important;
    opacity: 1 !important;
}

.book-input option {
    background-color: #2b2b2b;
    color: #ffffff;
    padding: 5px;
}

.book-input option:checked {
    background: linear-gradient(#E9CC9D, #E9CC9D);
    background-color: #E9CC9D !important;
    color: #2b2b2b !important;
}

/* Date and Time Picker - Remove default styling */
input[type="date"],
input[type="time"] {
    color-scheme: dark;
    position: relative;
}

/* Webkit browsers - Arrow icons like dropdown */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9CC9D'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: transparent;
}

/* Hide spinner buttons */
input[type="date"]::-webkit-outer-spin-button,
input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

input[type="time"]::-webkit-outer-spin-button,
input[type="time"]::-webkit-inner-spin-button {
    display: none;
}

.book-btn {
    padding: 12px 30px;
    background: transparent !important;
    color: #E9CC9D !important;
    border: 1px solid #E9CC9D !important;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none !important;
    box-shadow: none !important;
}

.book-btn:hover {
    background-color: #E9CC9D !important;
    color: #2b2b2b !important;
    transform: translateY(-2px);
    box-shadow: none !important;
    outline: none !important;
}

.book-btn:active {
    transform: translateY(0) !important;
    background-color: transparent !important;
    color: #E9CC9D !important;
    box-shadow: none !important;
    outline: none !important;
}

.book-btn:focus {
    outline: none !important;
    background-color: transparent !important;
    color: #E9CC9D !important;
    box-shadow: none !important;
    border-color: #E9CC9D !important;
}

.book-btn:focus-visible {
    outline: none !important;
    background-color: transparent !important;
    color: #E9CC9D !important;
    box-shadow: none !important;
}

.book-btn::-moz-focus-inner {
    border: none !important;
    padding: 0 !important;
    outline: none !important;
}

.book-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 900px) {
    .book-form {
        gap: 20px;
    }

    .book-input {
        min-width: 110px;
    }
}

/* Redirecting Message */
.book-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2b2b2b;
    border: 2px solid #E9CC9D;
    color: #E9CC9D;
    padding: 30px 50px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 768px) {
    .book-container {
        padding: 35px 15px;
        max-width: 100%;
    }

    .book-title {
        font-size: 26px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .book-form {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
    }

    .book-input {
        width: 100% !important;
        min-width: 100% !important;
        font-size: 14px;
        padding: 10px 0 12px 3px !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .book-btn {
        width: 100% !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 480px) {
    .book-container {
        padding: 25px 10px;
    }

    .book-title {
        font-size: 22px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .book-input {
        font-size: 13px;
        padding: 8px 0 10px 0;
    }

    .book-btn {
        font-size: 11px;
        padding: 10px 15px;
    }
}
