/**
 * Public CSS
 * @package Login_KYC_Booking
 */

/* ===== Modal Styles ===== */
.lkb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lkb-modal.active {
    display: block;
}

.lkb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.lkb-modal-content {
    position: relative;
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.lkb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.lkb-modal-close:hover {
    color: #333;
}

/* ===== Tabs ===== */
.lkb-modal-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.lkb-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.lkb-tab-btn.active {
    color: #d32f2f;
    border-bottom-color: #d32f2f;
}

.lkb-tab-content {
    display: none;
}

.lkb-tab-content.active {
    display: block;
}

/* ===== Form Styles ===== */
.lkb-form-group {
    margin-bottom: 20px;
}

.lkb-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.lkb-form-group input[type="text"],
.lkb-form-group input[type="email"],
.lkb-form-group input[type="tel"],
.lkb-form-group input[type="password"],
.lkb-form-group input[type="date"],
.lkb-form-group input[type="time"],
.lkb-form-group select,
.lkb-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.lkb-form-group input:focus,
.lkb-form-group select:focus,
.lkb-form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
}

.lkb-form-group input.error,
.lkb-form-group select.error {
    border-color: #d32f2f;
}

.lkb-form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.lkb-form-group small.lkb-field-error {
    color: #d32f2f;
    display: none;
}

.lkb-form-group.has-error small.lkb-field-error {
    display: block;
}

.lkb-required {
    color: #d32f2f;
}

/* Password wrapper */
.lkb-password-wrapper {
    position: relative;
}

.lkb-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Phone wrapper */
.lkb-phone-wrapper {
    display: flex;
    gap: 10px;
}

.lkb-country-code {
    width: 120px;
}

/* Date wrapper */
.lkb-date-wrapper {
    position: relative;
}

.lkb-clear-date {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

/* Checkbox */
.lkb-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lkb-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.lkb-checkbox label {
    margin: 0;
}

/* Buttons */
.lkb-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.lkb-btn-primary {
    background: #d32f2f;
    color: #fff;
    width: 100%;
}

.lkb-btn-primary:hover {
    background: #b71c1c;
}

.lkb-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.lkb-btn-link {
    background: none;
    border: none;
    color: #d32f2f;
    text-decoration: underline;
    cursor: pointer;
}

.lkb-btn-link:disabled {
    color: #999;
    cursor: not-allowed;
}

.lkb-btn-social {
    width: 100%;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.lkb-btn-facebook {
    background: #1877f2;
    color: #fff;
    border: none;
}

.lkb-btn-google {
    background: #fff;
    color: #333;
}

/* Error messages */
.lkb-form-error {
    padding: 12px;
    background: #fee;
    color: #d32f2f;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.lkb-form-error.show {
    display: block;
}

/* Social login */
.lkb-social-login {
    margin: 30px 0;
    text-align: center;
}

.lkb-social-login p {
    color: #999;
    margin-bottom: 15px;
}

/* Help */
.lkb-help {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 13px;
}

.lkb-forgot-password {
    color: #d32f2f;
    text-decoration: none;
}

/* ===== OTP Verification ===== */
.lkb-otp-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.lkb-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.lkb-otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.lkb-otp-input:focus {
    outline: none;
    border-color: #d32f2f;
}

.lkb-otp-timer {
    color: #d32f2f;
    margin: 20px 0;
    font-size: 14px;
}

.lkb-resend {
    margin-top: 20px;
}

/* ===== KYC Upload ===== */
.lkb-kyc-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
}

.lkb-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.lkb-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.lkb-upload-area:hover {
    border-color: #d32f2f;
    background: #fafafa;
}

.lkb-upload-placeholder svg {
    color: #999;
    margin-bottom: 15px;
}

.lkb-upload-placeholder p {
    margin: 10px 0;
    font-weight: bold;
}

.lkb-upload-placeholder small {
    display: block;
    color: #999;
    margin: 5px 0;
}

.lkb-upload-preview {
    position: relative;
}

.lkb-upload-preview img {
    max-width: 100%;
    border-radius: 8px;
}

.lkb-remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
}

.lkb-info-message {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* ===== Booking Form ===== */
.lkb-booking-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lkb-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lkb-tooltip {
    position: relative;
}

.lkb-tooltip-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d32f2f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.lkb-tooltip-content {
    display: none;
    position: absolute;
    bottom: 40px;
    right: 0;
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 300px;
    font-size: 13px;
    line-height: 1.5;
    z-index: 10;
}

.lkb-tooltip:hover .lkb-tooltip-content {
    display: block;
}

.lkb-tooltip-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #333;
}

/* ===== Status Badges ===== */
.lkb-status,
.lkb-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.lkb-status-pending,
.lkb-status-badge.lkb-status-pending {
    background: #fff3cd;
    color: #856404;
}

.lkb-status-verified,
.lkb-status-badge.lkb-status-verified {
    background: #d4edda;
    color: #155724;
}

.lkb-status-rejected,
.lkb-status-badge.lkb-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ===== My Bookings ===== */
.lkb-my-bookings {
    padding: 30px;
}

.lkb-bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.lkb-bookings-table th,
.lkb-bookings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.lkb-bookings-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.lkb-cancel-booking {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.lkb-cancel-booking:hover {
    background: #b71c1c;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .lkb-modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .lkb-upload-section {
        grid-template-columns: 1fr;
    }
    
    .lkb-otp-inputs {
        gap: 5px;
    }
    
    .lkb-otp-input {
        width: 40px;
        height: 50px;
    }
    
    .lkb-tooltip-content {
        width: 250px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .lkb-bookings-table {
        font-size: 12px;
    }
}

/* ===== Loading State ===== */
.lkb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lkb-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d32f2f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

