/* Pickup & Return Booking - Frontend Styles */
/* Brand Colors: Main #F08522, Accent #F12D25, Background #FFFAF6, Border #1A202C26 */

.prb-booking-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.prb-booking-form-wrapper {
    background: #FFFAF6;
    padding: 45px;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(26, 32, 44, 0.08);
    border: 1px solid rgba(26, 32, 44, 0.15);
}

.prb-form-title {
    display: none; /* Handled by Elementor */
}

.prb-form {
    width: 100%;
}

.prb-form-group {
    margin-bottom: 26px;
}

.prb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a202c;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.prb-form-group input[type="text"],
.prb-form-group input[type="email"],
.prb-form-group input[type="tel"],
.prb-form-group select,
.prb-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(26, 32, 44, 0.15);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
    color: #1a202c;
}

.prb-form-group input:focus,
.prb-form-group select:focus,
.prb-form-group textarea:focus {
    outline: none;
    border-color: #F08522;
    box-shadow: 0 0 0 3px rgba(240, 133, 34, 0.12);
}

.prb-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.prb-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

/* Grid Layout for Form Rows */
.prb-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.prb-form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.prb-col-6 {
    flex: 1;
    min-width: 0;
}

.prb-col-4 {
    min-width: 0;
}

.prb-col-full {
    grid-column: 1 / -1;
}

/* Address Field Group */
.prb-address-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid rgba(26, 32, 44, 0.1);
    margin-bottom: 26px;
}

.prb-address-section-title {
    font-weight: 600;
    color: #F08522;
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.prb-city-locked {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f7fafc;
    border: 1px solid rgba(26, 32, 44, 0.1);
    border-radius: 10px;
    color: #4a5568;
    font-size: 15px;
}

.prb-city-locked svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Calendar Input */
#prb-calendar-container {
    position: relative;
}

.prb-calendar-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23F08522' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;
    padding-right: 50px;
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(26, 32, 44, 0.15);
    border: 1px solid rgba(26, 32, 44, 0.1);
    font-family: inherit;
}

.flatpickr-months {
    background: #F08522;
    border-radius: 10px 10px 0 0;
    padding: 10px 0;
}

.flatpickr-current-month {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.flatpickr-month {
    color: white;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: white;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    fill: white;
    opacity: 0.8;
}

.flatpickr-weekdays {
    background: #fff;
    padding-top: 10px;
}

.flatpickr-weekday {
    color: #4a5568;
    font-weight: 600;
    font-size: 13px;
}

.flatpickr-day {
    color: #1a202c;
    border-radius: 8px;
    font-weight: 500;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: rgba(240, 133, 34, 0.1);
    border-color: rgba(240, 133, 34, 0.1);
    color: #F08522;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #F08522;
    border-color: #F08522;
    color: white;
    font-weight: 600;
}

.flatpickr-day.today {
    border-color: #F08522;
    color: #F08522;
    font-weight: 600;
}

.flatpickr-day.today:hover {
    background: rgba(240, 133, 34, 0.1);
}

.flatpickr-day.disabled {
    color: #cbd5e0;
    cursor: not-allowed;
}

/* Time Slot Selection */
.prb-timeslot-grid {
    display: flex;
    gap: 12px;
    width: 100%;
}

.prb-timeslot-grid > div {
    flex: 1;
    display: flex;
}

.prb-timeslot-option {
    display: none;
}

.prb-timeslot-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(26, 32, 44, 0.15);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    color: #1a202c;
    margin: 0 !important;
    box-sizing: border-box;
}

.prb-timeslot-label:hover {
    border-color: #F08522;
    background: rgba(240, 133, 34, 0.05);
}

.prb-timeslot-option:checked + .prb-timeslot-label {
    background: #F08522 !important;
    background-color: #F08522 !important;
    border-color: #F08522;
    color: white;
    font-weight: 600;
}

/* Form Actions */
.prb-form-actions {
    margin-top: 35px;
    text-align: center;
}

.prb-submit-btn {
    background: #F08522 !important;
    background-color: #F08522 !important;
    color: white !important;
    border: none;
    padding: 17px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(240, 133, 34, 0.25);
    min-width: 240px;
    letter-spacing: 0.3px;
}

.prb-submit-btn:hover:not(:disabled) {
    background: #e07515 !important;
    background-color: #e07515 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(240, 133, 34, 0.35);
}

.prb-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.prb-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.prb-form-note {
    margin-top: 28px;
    padding: 18px 22px;
    background: #ffffff;
    border-left: 4px solid #F08522;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26, 32, 44, 0.05);
}

.prb-form-note p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
}

/* Messages */
#prb-message-container {
    margin-bottom: 24px;
}

.prb-message {
    padding: 16px 22px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

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

.prb-message-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.prb-message-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #F12D25;
}

.prb-message-info {
    background: #fef3f0;
    color: #7c2d12;
    border-left: 4px solid #F08522;
}

/* Loading state */
.prb-loading .prb-btn-text {
    display: none;
}

.prb-loading .prb-btn-loading {
    display: inline !important;
}

/* Select styling */
.prb-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23F08522' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
    cursor: pointer;
}

.prb-form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f7fafc;
}

/* Required field indicator */
.prb-form-group label::after {
    content: " *";
    color: #F12D25;
}

/* Hide asterisk for optional fields */
.prb-form-group.prb-optional label::after {
    content: "";
}

/* Responsive Design */
@media (max-width: 768px) {
    .prb-booking-form-wrapper {
        padding: 28px 20px;
    }

    .prb-form-row,
    .prb-form-row-3 {
        flex-direction: column;
        gap: 0;
    }

    .prb-timeslot-grid {
        flex-direction: column;
    }

    .prb-timeslot-grid > div {
        width: 100%;
    }

    .prb-address-section {
        padding: 20px;
    }

    .prb-submit-btn {
        width: 100%;
        padding: 17px 20px;
        min-width: 0;
    }
}

/* Additional Polish */
input::placeholder,
textarea::placeholder {
    color: #a0aec0;
}

select:invalid {
    color: #a0aec0;
}

option {
    color: #1a202c;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #F08522;
    outline-offset: 2px;
}