/* Trip Request Modal Styles */

.trip-request-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.trip-request-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.trip-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.trip-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.trip-modal-close:hover,
.trip-modal-close:focus {
    color: #000;
}

.trip-modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar Styles */
.calendar-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.calendar-nav-btn:hover {
    background: #1976D2;
}

.calendar-month-year {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    padding: 10px 0;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    background: white;
    transition: all 0.2s ease;
    color: #333;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: #e3f2fd;
    border-color: #2196F3;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    font-weight: 600;
}

.calendar-day.disabled,
.calendar-day.empty {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

.selected-date-display {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    border: 1px solid #e0e0e0;
}

.selected-date-display strong {
    color: #333;
    display: inline-block;
    margin-right: 10px;
}

.selected-date-display span {
    color: #2196F3;
    font-weight: 600;
}

/* Person Counter */
.person-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.counter-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #2196F3;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: #e3f2fd;
    transform: scale(1.1);
}

.counter-display {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    min-width: 80px;
    text-align: center;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: #2196F3;
    color: white;
}

.btn-submit:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-cancel:hover {
    background: #efefef;
}

/* Request Message */
.request-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.request-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.request-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .trip-modal-content {
        padding: 20px;
        width: 95%;
    }

    .trip-modal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .modal-section {
        margin-bottom: 20px;
    }

    .person-counter {
        gap: 20px;
        padding: 20px;
    }

    .counter-display {
        font-size: 28px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .calendar-container {
        padding: 15px;
    }
}