/* Cab OTP Pro — Frontend Styles */

:root {
    --otp-primary: #F5A623;
    --otp-primary-dark: #d4891a;
    --otp-success: #27AE60;
    --otp-error: #E74C3C;
    --otp-dark: #1a1a2e;
    --otp-card-bg: #ffffff;
    --otp-border: #e8e8e8;
    --otp-text: #333;
    --otp-muted: #777;
    --otp-radius: 14px;
    --otp-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.cabotp-wrap {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 480px;
    margin: 30px auto;
}

.cabotp-card {
    background: var(--otp-card-bg);
    border-radius: var(--otp-radius);
    box-shadow: var(--otp-shadow);
    overflow: hidden;
    border: 1px solid var(--otp-border);
}

/* Header */
.cabotp-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 28px 28px 22px;
    text-align: center;
}
.cabotp-header-driver {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}
.cabotp-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
}
.cabotp-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.cabotp-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

/* Body */
.cabotp-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cabotp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Fields */
.cabotp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cabotp-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--otp-text);
}
.cabotp-hint {
    font-weight: 400;
    color: var(--otp-muted);
    font-size: 11px;
}
.cabotp-field input {
    padding: 11px 14px;
    border: 1.5px solid var(--otp-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    color: var(--otp-text);
    background: #fafafa;
}
.cabotp-field input:focus {
    border-color: var(--otp-primary);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
    background: #fff;
}

/* OTP Input */
.cabotp-otp-input-wrap input {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    padding: 14px;
    border: 2px solid var(--otp-border);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}
.cabotp-otp-input-wrap input:focus {
    border-color: var(--otp-primary);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

/* Buttons */
.cabotp-btn {
    width: 100%;
    padding: 14px;
    background: var(--otp-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .3px;
}
.cabotp-btn:hover {
    background: var(--otp-primary-dark);
    transform: translateY(-1px);
}
.cabotp-btn:active {
    transform: translateY(0);
}
.cabotp-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.cabotp-btn-verify {
    background: #0f3460;
}
.cabotp-btn-verify:hover {
    background: #0a2548;
}
.cabotp-btn-resend {
    background: transparent;
    border: 2px solid var(--otp-border);
    color: var(--otp-muted);
    font-size: 13px;
    padding: 10px;
    margin-top: -6px;
}
.cabotp-btn-resend:hover {
    border-color: var(--otp-primary);
    color: var(--otp-primary);
    background: transparent;
}

/* Result messages */
.cabotp-result {
    margin: 0 28px 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.cabotp-result.cabotp-success {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: var(--otp-success);
}
.cabotp-result.cabotp-error {
    background: #fdedec;
    border: 1px solid #f5b7b1;
    color: var(--otp-error);
}

/* Ride Started Card */
.cabotp-ride-started {
    text-align: center;
    padding: 32px 28px;
    background: linear-gradient(135deg, #eafaf1, #d5f5e3);
    border-top: 1px solid #a9dfbf;
}
.cabotp-success-icon {
    font-size: 56px;
    margin-bottom: 12px;
    animation: cabotp-pop .4s ease;
}
@keyframes cabotp-pop {
    0%   { transform: scale(0); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.cabotp-ride-started h3 {
    font-size: 24px;
    color: var(--otp-success);
    margin: 0 0 14px;
}
.cabotp-ride-details p {
    margin: 6px 0;
    font-size: 14px;
    color: #444;
}

/* Booking ID badge shown after generate */
.cabotp-booking-badge {
    text-align: center;
    padding: 14px;
    background: #fff8ec;
    border: 1px dashed var(--otp-primary);
    border-radius: 8px;
    margin-top: 4px;
}
.cabotp-booking-badge .cabotp-booking-id {
    font-size: 22px;
    font-weight: 800;
    color: var(--otp-primary-dark);
    letter-spacing: 3px;
    display: block;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .cabotp-wrap { margin: 16px; }
    .cabotp-row  { grid-template-columns: 1fr; }
    .cabotp-body { padding: 20px; }
}
