/* assets/css/frontend.css */

/* Card-based UI */
.card {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Progress bar */
.progress-bar {
    height: 5px;
    background-color: #eee;
    margin-bottom: 20px;
}
.progress {
    height: 100%;
    transition: width 0.3s;
}

/* Steps */
.step {
    display: none;
}
.step.active {
    display: block;
}

/* Form elements */
input, textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 5px;
}
button:hover {
    opacity: 0.9;
}

/* Label styling */
.errandplus-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* Map and text elements */
#map, p {
    margin-bottom: 15px;
}

/* Dashboard tables */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}
.orders-table th, .orders-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.orders-table th {
    background-color: #f2f2f2;
}

/* Thank you message */
.thank-you-message {
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 10px;
    }
    #map {
        height: 200px;
    }
    button {
        width: 100%;
        margin: 10px 0;
    }
    .orders-table {
        display: block;
        overflow-x: auto;
    }
    .orders-table thead {
        display: none;
    }
    .orders-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 10px;
    }
    .orders-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
    }
    .orders-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
    }
    .orders-table td[data-label="Actions"] {
        text-align: left;
        padding-left: 0;
    }
    .orders-table td[data-label="Actions"]:before {
        display: none;
    }
}