/* OKUMI Booking – Frontend Styles */
.okumi-dp-header button {
    margin: 0px;
} 
.okumi-booking-form {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    /* Ensure datepicker popup positions relative to viewport via offset() */
}

/* Form layout */
.okumi-form-row {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.okumi-col { flex: 1; min-width: 0; }
.okumi-col-6  { flex: 0 0 calc(50% - 9px); min-width: 200px; }
.okumi-col-12 { flex: 0 0 100%; }

@media (max-width: 560px) {
    .okumi-col-6 { flex: 0 0 100%; }
}

/* Labels */
.okumi-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}
.okumi-req { color: #cd2f23; margin-left: 2px; }
.okumi-optional { color: #999; font-weight: 400; font-size: 12px; }

/* Inputs */
.okumi-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #1a1a1a;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.okumi-input:focus {
    outline: none;
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}
.okumi-input.has-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}
.okumi-input[readonly] { cursor: pointer; background: #faf9f7; }

.okumi-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.okumi-textarea { resize: vertical; min-height: 100px; }

/* Field errors */
.okumi-field-error {
    display: block;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 5px;
    min-height: 18px;
}

/* Submit button */
.okumi-submit-row { justify-content: center; }
.okumi-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #cd2f23;
    color: #fff;
    border: none;
    padding: 15px 48px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    min-width: 240px;
}
.okumi-btn-submit:hover:not(:disabled) { background: #b02820; transform: translateY(-1px); }
.okumi-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.okumi-spinner {
    width: 18px; height: 18px;
    animation: okumi-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes okumi-spin { to { transform: rotate(360deg); } }

/* Response messages */
#okumi-form-response {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}
#okumi-form-response.okumi-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}
#okumi-form-response.okumi-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ------------------------------------------------------------------ Datepicker */

.okumi-datepicker-popup {
    position: absolute;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    padding: 0;
    width: 308px;
    font-family: inherit;
    user-select: none;
}

.okumi-dp { padding: 16px; }

.okumi-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.okumi-dp-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.okumi-dp-prev,
.okumi-dp-next {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}
.okumi-dp-prev:hover,
.okumi-dp-next:hover { background: #f5f5f5; color: #1a1a1a; }

.okumi-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.okumi-dp-dayname {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
    padding: 4px 0 8px;
    text-transform: uppercase;
}
.okumi-dp-day {
    text-align: center;
    padding: 7px 4px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #1a1a1a;
    transition: background 0.12s, color 0.12s;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.okumi-dp-day.available:hover { background: #fdf6e8; color: #92701a; }
.okumi-dp-day.selected {
    background: #c8a96e !important;
    color: #fff !important;
    font-weight: 700;
}
.okumi-dp-day.is-today { font-weight: 700; color: #cd2f23; }
.okumi-dp-day.is-today.selected { color: #fff; }
.okumi-dp-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}
.okumi-dp-day.closed { color: #e2c2c0; }
.okumi-dp-day.other-month { opacity: 0; pointer-events: none; }
