﻿/* Base */
.pp-body {
    background: #f5f5f5;
    color: #525252;
    font-family: "Open Sans", Arial, sans-serif;
}

/* Header */
.pp-header {
    background: #3392e0;
    height: 10rem;
}

.pp-main {
    margin-top: -5rem;
    padding-bottom: 2rem;
}

/* Card */
.pp-card {
    border-radius: 0.75rem; /* 12px */
    overflow: hidden;
    box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,.08); /* 2px 12px */
}

    .pp-card .card-body {
        padding: 1.25rem;
    }

@media (min-width: 48rem) { /* 768px */
    .pp-card .card-body {
        padding: 1.75rem;
    }
}

/* Links */
.pp-link {
    color: #007bff;
    text-decoration: none;
}

    .pp-link:hover {
        color: #0069d9;
        text-decoration: none;
    }

/* Headings */
.pp-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
}

.pp-required {
    color: #f43f5e;
}

/* Stepper */
.pp-stepper {
    margin: 1rem auto 0 auto;
    max-width: 20rem; /* 320px */
    display: flex;
    justify-content: space-between;
    position: relative;
}

    .pp-stepper:before {
        content: "";
        position: absolute;
        left: 1rem; /* 16px */
        right: 1rem; /* 16px */
        top: 50%;
        height: 0.125rem; /* 2px */
        background: #e2e8f0;
        transform: translateY(-50%);
    }

.pp-step {
    width: 2.125rem; /* 34px */
    height: 2.125rem; /* 34px */
    border-radius: 999rem;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

    .pp-step.is-active {
        background: #007bff;
        color: #fff;
    }

/* Toggle */
.pp-toggle .btn {
    font-weight: 600;
}

    .pp-toggle .btn:focus,
    .pp-toggle .btn.focus {
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,.15);
    }

/* Choice cards */
.pp-choice-list {
    max-width: 32.5rem; /* 520px */
    margin: 0 auto;
}

.pp-choice-item {
    margin-bottom: 0.75rem; /* 12px */
    position: relative;
}

    .pp-choice-item.is-emergency .pp-choice-label {
        border-left: 0.25rem solid #dc3545; /* 4px */
    }

.pp-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pp-choice-label {
    display: block;
    background: #fff;
    border: 0.0625rem solid #e2e8f0; /* 1px */
    border-radius: 0.75rem; /* 12px */
    padding: 0.875rem 1rem; /* 14px 16px */
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.06);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .pp-choice-label:hover {
        border-color: #dee2e6;
        box-shadow: none;
    }

.pp-choice-input:checked + .pp-choice-label {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.15);
}

.pp-choice-input:focus + .pp-choice-label {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.pp-choice-icon {
    width: 2.5rem; /* 40px */
    margin-right: 0.75rem; /* 12px */
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-choice-title {
    font-weight: 700;
    color: #404040;
}

.pp-choice-desc {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.125rem; /* 2px */
}

.pointer {
    cursor: pointer;
}

.pp-next {
    font-weight: 700;
}

/* Legal */
.pp-legal {
    background: #fff;
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Modal */
.pp-modal-icon {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    border-radius: 999rem;
    background: #ffe4e6;
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-modal-icon-svg {
    width: 1rem; /* 16px */
    height: 1rem; /* 16px */
    fill: currentColor;
}

.pp-danger-text {
    color: #f43f5e;
    word-wrap: break-word;
}

/* Footer */
.pp-footer-brand {
    margin-top: 0.25rem;
    padding-bottom: 1rem;
}

.pp-footer-text {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #6c757d;
}

.fill-qdblue {
    fill: #0076b5;
}

.fill-neutral-600 {
    fill: #525252;
}

.is-emergency {
    color: #dc3545;
}

.pp-slot-btn {
    border-radius: 999rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 6.5rem;
}

    .pp-slot-btn.active {
        color: #fff;
        background-color: #007bff;
        border-color: #007bff;
    }

.pp-date-host,
#ppDatePickerHost {
    width: 100%;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

    #ppDatePickerHost .flatpickr-calendar {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none;
    }

    /* Make sure the internal month containers stretch */
    #ppDatePickerHost .flatpickr-innerContainer,
    #ppDatePickerHost .flatpickr-rContainer,
    #ppDatePickerHost .flatpickr-months,
    #ppDatePickerHost .flatpickr-days {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force the 7-column grid to stay correct and fill the container */
    #ppDatePickerHost .dayContainer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    /* Each day = exactly 1/7 width (prevents the “8+ columns” bug) */
    #ppDatePickerHost .flatpickr-day {
        flex: 0 0 14.285714% !important;
        max-width: 14.285714% !important;
        box-sizing: border-box;
    }

    /* Keep weekday header aligned with the day grid */
    #ppDatePickerHost .flatpickr-weekdays {
        width: 100% !important;
    }

    #ppDatePickerHost .flatpickr-weekdaycontainer {
        width: 100% !important;
        display: flex !important;
    }

    #ppDatePickerHost .flatpickr-weekday {
        flex: 0 0 14.285714% !important;
        max-width: 14.285714% !important;
        text-align: center;
    }

    /* Prevent any overflow that can push the calendar wider than the column */
    #ppDatePickerHost .flatpickr-calendar *,
    #ppDatePickerHost .flatpickr-calendar *:before,
    #ppDatePickerHost .flatpickr-calendar *:after {
        box-sizing: border-box;
    }

    #ppDatePickerHost .flatpickr-calendar {
        overflow: hidden;
    }

    /* Optional: make month nav not force a min width */
    #ppDatePickerHost .flatpickr-month {
        flex: 1 1 auto;
    }

    #ppDatePickerHost .flatpickr-current-month {
        width: 100%;
        text-align: center;
    }

    #ppDatePickerHost .flatpickr-prev-month,
    #ppDatePickerHost .flatpickr-next-month {
        padding: 0.25rem;
    }
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    visibility: hidden;
    pointer-events: none;
}
.pp-slot-selected {
    margin-top: 1rem;
    border: 0.125rem solid #007bff;
    border-radius: 0.75rem;
    background: #eef5ff;
    padding: 0.875rem 1.125rem;
}

.pp-slot-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.pp-slot-value {
    font-size: 1rem;
    font-weight: 800;
    color: #212529;
}
.pp-success-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 2.5rem;
}

.pp-deposit {
    border-width: 2px;
    border-radius: 10px;
}

    .pp-deposit .btn-warning {
        font-weight: 700;
    }
.pp-deposit-wrap {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.pp-deposit-header {
    padding: 18px 18px 14px 18px;
    background: #f7f8fb;
    border-bottom: 1px solid #e6e6e6;
}

.pp-deposit-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
}

.pp-deposit-amount {
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 8px;
}

.pp-deposit-sub {
    color: #6c757d;
    font-size: 14px;
}

.pp-deposit-body {
    padding: 16px 18px 18px 18px;
}

.pp-deposit-reason {
    background: #fff7e6;
    border: 1px solid #ffe0a3;
    border-radius: 10px;
    padding: 12px 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

.pp-deposit-step-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.pp-deposit-list {
    margin: 0;
    padding-left: 18px;
}

    .pp-deposit-list li {
        margin-bottom: 6px;
    }

.pp-deposit-actions {
    margin-top: 14px;
}

.pp-deposit-btn {
    font-weight: 800;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 10px;
}

.pp-deposit-alt {
    margin-top: 10px;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}