/* Rajadhiraj Cabs — Modern Time Picker
   Shared by admin-booking-add, admin-booking-edit, and public booking forms.
   Loaded after each page's inline <style> block so these rules win the cascade. */

#rdc-custom-time-picker {
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Header ---- */
.rdc-tp-header {
    background: #fff8f0;
    color: #1a1a1a;
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #ffe8cc;
    cursor: default;
}

.rdc-tp-time {
    font-size: 52px;
    font-weight: 300;
    color: #2a2a2a;
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: -1px;
    line-height: 1;
}

.rdc-tp-time > span {
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
    color: #b8b8b8; /* dim by default — the .active span gets full color */
}

.rdc-tp-time > span:hover {
    color: #8a8a8a;
}

.rdc-tp-time > span.active {
    color: #1a1a1a;
    background: rgba(255, 123, 0, 0.14);
}

/* ---- AM/PM segmented toggle ---- */
.rdc-tp-ampm-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 4px;
}

.rdc-tp-ampm-col span {
    cursor: pointer;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    color: #8a8a8a;
    background: #f1f1f1;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    min-width: 50px;
    letter-spacing: 0.5px;
    user-select: none;
}

.rdc-tp-ampm-col span:hover {
    background: #e7e7e7;
    color: #4a4a4a;
}

.rdc-tp-ampm-col span.active {
    background: #ff7b00;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.35);
    opacity: 1;
}

/* ---- Body / Clock ---- */
.rdc-tp-body {
    padding: 24px;
    display: flex;
    justify-content: center;
    background: #ffffff;
}

/* Clock dimensions are 220×220 to match the JS geometry:
   numbers orbit center (110, 110) at radius 90; the hand
   originates from the visual center (50%, 50%) of this element. */
.rdc-tp-clock {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    position: relative;
}

.rdc-tp-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff7b00;
    z-index: 10;
}

.rdc-tp-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: left center;
    height: 2px;
    background: #ff7b00;
    z-index: 5;
    width: 95px;
    border-radius: 2px;
}

.rdc-tp-number {
    position: absolute;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
    cursor: pointer;
    z-index: 15;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
}

.rdc-tp-number:hover {
    background: rgba(255, 123, 0, 0.10);
}

.rdc-tp-number.active {
    background: #ff7b00;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(255, 123, 0, 0.40);
}

/* ---- Footer ---- */
.rdc-tp-footer {
    padding: 12px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #f4f4f4;
}

.rdc-tp-keyboard-btn {
    color: #999999;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.rdc-tp-keyboard-btn:hover {
    background: #f4f4f4;
    color: #ff7b00;
}

.rdc-tp-actions {
    display: flex;
    gap: 4px;
}

.rdc-tp-actions button {
    background: none;
    border: none;
    color: #ff7b00;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.rdc-tp-actions button:hover {
    background: rgba(255, 123, 0, 0.10);
}

.rdc-tp-actions #rdc-tp-cancel {
    color: #888888;
}

.rdc-tp-actions #rdc-tp-cancel:hover {
    background: #f4f4f4;
}

/* ---- Manual input view ---- */
.rdc-mto-body {
    padding: 24px;
    text-align: center;
    background: #ffffff;
}

.rdc-mto-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.rdc-mto-inputs input {
    width: 70px;
    border: 1px solid #e6e6e6;
    border-bottom: 2px solid #ff7b00;
    border-radius: 8px;
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    padding: 6px 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fafafa;
}

.rdc-mto-inputs input:focus {
    outline: none;
    border-color: #ff7b00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
}

.rdc-mto-inputs select {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 600;
    color: #4a4a4a;
}
