/**
 * Customer Request Page Styles
 * Mobile-first responsive design for vehicle request system
 */

/* Base Layout */
.customer-request-page {
    /* Default secondary color for unbranded customer request pages (brand indigo light) */
    --secondary-color: #5E35B1;

    /* Header customization (defaults) */
    --header-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --header-font-color: #ffffff;

    /* Box text customization (defaults) */
    --box-font-color: #495057;

    /* Button customization (defaults) */
    --button-bg: var(--primary-color);
    --button-font-color: #ffffff;
    --button-hover-bg: var(--secondary-color);
    --button-hover-font-color: #ffffff;

    /* Logo box customization (defaults) */
    --logo-box-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 1rem;
    font-family: var(--font-secondary);
}

.request-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Request Card - Login and Main */
.request-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

/* Header Section */
.request-header,
.vehicle-header {
    background: var(--header-bg, linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%));
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--header-font-color, #ffffff);
}

.request-logo {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.request-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.request-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.25rem 0;
    font-family: var(--font-primary);
}

.request-header p {
    font-size: 0.85rem;
    opacity: 0.95;
    margin: 0;
}

/* Body Section */
.request-body {
    padding: 1.25rem 1.5rem;
}

/* QR Code Instructions */
.qr-instructions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.qr-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.qr-instructions p {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.divider-text {
    margin: 1rem 0;
    position: relative;
    text-align: center;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #dee2e6;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

/* Form Styles */
.request-form .form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--box-font-color, #495057);
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    background-color: #ffffff;
    color: #212529;
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.2rem;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);
    outline: none;
    background-color: #ffffff;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #868e96;
    line-height: 1.4;
}

/* Button Styles */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-secondary);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1.125rem 1.75rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--button-bg, var(--primary-color));
    color: var(--button-font-color, #ffffff);
}

.btn-primary:hover {
    background: var(--button-hover-bg, var(--secondary-color));
    color: var(--button-hover-font-color, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Vehicle Info Card */
.vehicle-info-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.vehicle-header {
    background: var(--header-bg, linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%));
    color: var(--header-font-color, var(--white));
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-header h2 {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.vehicle-details {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 500;
    color: var(--dark-gray);
    text-align: right;
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-1, .status-2 {
    background: #fff3cd;
    color: #856404;
}

.status-3 {
    background: #cce5ff;
    color: #004085;
}

.status-4, .status-5 {
    background: #f0ad4e;
    color: var(--white);
}

.status-6 {
    background: var(--success-color);
    color: var(--white);
}

.status-7, .status-8 {
    background: #6c757d;
    color: var(--white);
}

/* Time Selector */
.time-selector {
    margin: 1.5rem 0;
}

.time-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #343a40;
    font-size: 1rem;
}

.time-slider-container {
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.time-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    margin: 1.5rem 0;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.time-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.time-display {
    text-align: center;
    padding: 0.5rem 0;
}

.time-display span {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.375rem;
}

.time-display small {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

/* Quick Select Buttons */
.quick-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.quick-btn {
    padding: 0.875rem 0.5rem;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

.quick-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Request Form Container */
.request-form-container {
    padding: 1.75rem 1.5rem 2rem;
}

.request-form-container h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
}

.request-form-container p {
    color: #6c757d;
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

/* Status Displays */
.status-ready,
.status-retrieving,
.status-requested,
.status-unavailable,
.status-delivered {
    text-align: center;
    padding: 3rem 1.5rem;
}

.ready-icon,
.retrieving-icon,
.requested-icon,
.unavailable-icon,
.delivered-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.ready-icon {
    color: var(--success-color);
}

.delivered-icon {
    color: #FFD700;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.retrieving-icon {
    color: #f0ad4e;
    animation: pulse 1.5s infinite;
}

.requested-icon {
    color: var(--primary-color);
}

.unavailable-icon {
    color: #6c757d;
}

/* Special styling for delivered status */
.status-delivered h2 {
    color: #218838;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.status-delivered p {
    font-size: 1.125rem;
    color: #495057;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ===================================
   Survey Invitation Box
   =================================== */
.survey-invitation-box {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    border-radius: 1rem;
    margin: 1.5rem;
    margin-bottom: 0;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
}

.survey-invitation-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.survey-invitation-box:active {
    transform: translateY(-1px);
}

.survey-invitation-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.survey-invitation-box .survey-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-invitation-box .survey-icon i {
    font-size: 1.5rem;
    color: #fff;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.survey-invitation-box .survey-text {
    flex: 1;
    min-width: 0;
}

.survey-invitation-box .survey-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-primary);
}

.survey-invitation-box .survey-text p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.survey-invitation-box .survey-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.survey-invitation-box .survey-arrow i {
    font-size: 0.875rem;
    color: #fff;
}

.survey-invitation-box:hover .survey-arrow {
    transform: translateX(3px);
}

/* Mobile Responsive - Survey Invitation */
@media (max-width: 480px) {
    .survey-invitation-box {
        margin: 1rem;
        margin-bottom: 0;
        padding: 1rem 1.25rem;
    }

    .survey-invitation-box .survey-icon {
        width: 44px;
        height: 44px;
    }

    .survey-invitation-box .survey-icon i {
        font-size: 1.25rem;
    }

    .survey-invitation-box .survey-text h3 {
        font-size: 1rem;
    }

    .survey-invitation-box .survey-text p {
        font-size: 0.8rem;
    }

    .survey-invitation-box .survey-arrow {
        width: 28px;
        height: 28px;
    }
}

/* Gentle bounce animation for delivered icon */
@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Active Request */
.active-request {
    padding: 2rem 1.5rem;
}

.request-status {
    text-align: center;
    margin-bottom: 2rem;
}

.request-status i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.countdown {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

.overdue {
    color: var(--danger-color);
    font-weight: 600;
}

.request-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Reschedule Form */
.reschedule-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
}

.reschedule-form h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.time-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-option {
    padding: 0.75rem 0.5rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.time-option:hover {
    border-color: var(--primary-color);
}

.time-option.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.reschedule-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

/* Logout Container */
.logout-container {
    text-align: right;
    margin-bottom: 1rem;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--white);
    color: var(--danger-color);
}

/* Help Section */
.help-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.help-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.help-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Help Footer */
.help-footer {
    text-align: center;
    padding: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.help-footer i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Mobile Notice */
.mobile-notice {
    text-align: center;
    color: #868e96;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.mobile-notice i {
    margin-right: 0.5rem;
    color: #868e96;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design - Tablet and Up */
@media (min-width: 768px) {
    .request-container {
        max-width: 600px;
        padding: 2rem 0;
    }
    
    .request-header {
        padding: 2.5rem 2rem;
    }
    
    .request-body {
        padding: 2.5rem 2rem;
    }
    
    .request-form-container {
        padding: 2rem 2rem 2.5rem;
    }
    
    .time-slider-container {
        padding: 2.5rem 2rem;
    }
    
    .quick-select {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.75rem;
    }
    
    .time-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .customer-request-page {
        padding: 2rem;
    }
    
    .request-container {
        max-width: 480px;
    }
}

/* Ensure light theme for better readability */
@media (prefers-color-scheme: dark) {
    /* Override dark mode to maintain light theme for consistency */
    .customer-request-page {
        background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    }
    
    .request-card,
    .vehicle-info-card {
        background: #ffffff;
        color: #212529;
    }
    
    .form-control {
        background: #ffffff;
        border-color: #e0e0e0;
        color: #212529;
    }
    
    .form-control::placeholder {
        color: #6c757d;
    }
    
    .detail-row {
        border-bottom-color: #f0f0f0;
    }
    
    .detail-label {
        color: #6c757d;
    }
    
    .detail-value {
        color: #212529;
    }
    
    .form-label {
        color: #495057;
    }
    
    .form-text {
        color: #868e96;
    }
}

/* Payment-Related Styles */
.payment-prompt-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px color-mix(in srgb, var(--primary-color) 15%, transparent);
    animation: fadeInUp 0.5s ease-out;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    flex: 1;
}

.payment-info i {
    font-size: 1.5rem;
}

.payment-info span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Override default green btn-success with brand colors on customer request pages */
.customer-request-page .btn-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.customer-request-page .btn-success:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.payment-prompt-card .btn-success {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
}

.payment-prompt-card .btn-success:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Payment option in request form */
.payment-option {
    margin-top: 1.5rem;
}

.payment-option .divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 1.5rem 0;
}

.payment-option p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Info Message */
.info-message {
    background: #e7f3ff;
    color: #0066cc;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.info-message i {
    flex-shrink: 0;
}

/* Payment Form Card */
.payment-header-card {
    background: var(--header-bg, linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%));
    color: var(--header-font-color, white);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-header-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.payment-header-card p {
    margin: 0;
    opacity: 0.95;
}

.vehicle-info-card.compact {
    padding: 1rem 1.5rem;
}

.vehicle-info-card.compact .detail-row {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.fee-details-card,
.payment-form-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fee-details-card h2,
.payment-form-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fee-breakdown {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.fee-breakdown .detail-row {
    padding: 0.625rem 0;
    border-bottom: 1px solid #e9ecef;
}

.fee-breakdown .detail-row:last-child {
    border-bottom: none;
}

.fee-breakdown .total-row {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
    font-size: 1.125rem;
    font-weight: 600;
}

.fee-breakdown .amount {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Stripe Card Element */
.stripe-card-element {
    background: white;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.stripe-card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.payment-buttons {
    margin-top: 1.5rem;
}

.payment-buttons .btn-block:first-child {
    margin-bottom: 1rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.badge-item i {
    font-size: 1.25rem;
}

/* Payment Success Page */
.payment-success-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

.success-animation {
    margin-bottom: 1.5rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1s ease-out;
}

.success-checkmark i {
    font-size: 2.5rem;
    color: white;
}

.payment-success-card h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.success-message {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.receipt-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.receipt-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.receipt-details .detail-row {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-actions {
    margin-top: 2rem;
}

.success-actions .btn-block {
    margin-bottom: 1rem;
}

.already-requested {
    text-align: center;
}

.status-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.thank-you-message {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.95rem;
}

.thank-you-message i {
    color: #dc3545;
}

/* Payment Complete/No Payment Cards */
.payment-complete-card,
.no-payment-card {
    text-align: center;
    padding: 3rem 1.5rem;
}

.complete-icon,
.free-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.complete-icon {
    color: var(--primary-color);
}

.free-icon {
    color: var(--primary-color);
}

/* Navigation for payment pages */
.nav-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.btn-back,
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover,
.btn-logout:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive adjustments for payment elements */
@media (max-width: 767px) {
    .payment-prompt-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .payment-info {
        justify-content: center;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .payment-header-card h1 {
        font-size: 2rem;
    }
    
    .fee-details-card,
    .payment-form-card,
    .payment-success-card {
        padding: 2rem;
    }
}

/* Payment Required Container */
.payment-required-container {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-radius: 1rem;
    border: 2px solid #ffcccc;
}

.payment-required-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.payment-required-container h2 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.payment-required-container p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.payment-required-container .balance-due {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.payment-required-container .balance-due strong {
    color: #dc3545;
    font-size: 1.5rem;
}

/* ===================================
   Custom Modal Styles
   =================================== */

/* Modal Overlay */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: overlayFadeIn 0.3s ease-out;
}

/* Modal Container */
.modal-container {
    position: relative;
    z-index: 10000;
    max-width: 90%;
    width: 400px;
    animation: modalSlideUp 0.3s ease-out;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
}

/* Modal Icon */
.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: iconPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-icon.success {
    color: var(--primary-color);
}

.modal-icon.error {
    color: #dc3545;
}

.modal-icon.warning {
    color: #ffc107;
}

.modal-icon.info {
    color: #17a2b8;
}

.modal-icon.confirm {
    color: var(--primary-color);
}

/* Modal Title */
.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    font-family: var(--font-primary);
}

/* Modal Message */
.modal-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    white-space: pre-wrap;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    min-width: 120px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-btn:active {
    transform: translateY(0);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.modal-btn-confirm:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.modal-btn-confirm.success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.modal-btn-confirm.success:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.modal-btn-cancel {
    background: #6c757d;
    color: white;
}

.modal-btn-cancel:hover {
    background: #5a6268;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .modal-container {
        max-width: 95%;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-message {
        font-size: 1rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

/* ===================================
   Custom Time Picker Styles
   =================================== */

/* Custom Time Toggle */
.custom-time-toggle {
    margin-top: 1rem;
    text-align: center;
}

.custom-time-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-secondary);
}

.custom-time-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 5%, transparent);
}

.custom-time-btn.active {
    border-style: solid;
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

.custom-time-btn i {
    font-size: 1.1rem;
}

/* Custom Time Section */
.custom-time-section {
    margin-top: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
}

.custom-time-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.95rem;
}

.custom-time-form input[type="datetime-local"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-secondary);
    background-color: #ffffff;
    color: #212529;
    transition: all 0.2s ease;
}

.custom-time-form input[type="datetime-local"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);
    outline: none;
}

/* Schedule Preview */
.schedule-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

.schedule-preview strong {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.schedule-preview.error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ===================================
   Powered by PUR Valet Footer
   =================================== */

.powered-by-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.powered-by-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.powered-by-footer a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Legal Disclaimer (location-configured, shown at the bottom of the request site) */
.disclaimer-section {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.disclaimer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.disclaimer-title i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.disclaimer-body {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #6c757d;
    white-space: pre-line;
}

/* Mobile Responsive - Custom Time */
@media (max-width: 480px) {
    .custom-time-section {
        padding: 1rem;
    }

    .custom-time-form input[type="datetime-local"] {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .schedule-preview {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* Phone Modal Input for SMS Valet Light */
.phone-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    text-align: center;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.phone-modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(69, 39, 160, 0.1);
}

.phone-modal-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
}