* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 0.6;
}

.courier-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.courier-header {
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.courier-header h1 {
    color: #2c3e50;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.courier-header p {
    color: #7f8c8d;
    font-size: 0.5rem;
}

.uk-courier-quote-form {
    max-width: 900px;
    margin: 0 auto;
}

.quote-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h2 {
    color: #2c3e50;
    font-size: 0.5rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.input-with-button {
    display: flex;
    align-items: center;
}

.input-with-button input {
    flex: 1;
    margin-right: 10px;
}

.remove-stop {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-stop:hover {
    background: #c0392b;
}

.add-stop {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.add-stop:hover {
    color: #2980b9;
}

.add-stop i {
    margin-right: 8px;
}

.vehicle-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.vehicle-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
}

.vehicle-option:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vehicle-option.selected {
    border-color: #3498db;
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.vehicle-option img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.vehicle-option i {
    color: #3498db;
    margin-bottom: 10px;
    display: block;
    font-size: 1rem;
}

.vehicle-option h3 {
    font-size: 0.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.vehicle-option p {
    color: #7f8c8d;
    font-size: 0.3rem;
    margin: 0;
}

.vehicle-rates {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.vehicle-rates small {
    color: #27ae60;
    font-weight: 500;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.quote-result {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    display: none;
}

.quote-result h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.quote-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.quote-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.quote-item h3 {
    color: #7f8c8d;
    font-size: 0.6rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-item p {
    color: #2c3e50;
    font-size: 0.5rem;
    font-weight: 600;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.service-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.service-option:hover {
    border-color: #3498db;
}

.service-option.selected {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.service-option h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-option p {
    color: #7f8c8d;
    font-size: 0.5rem;
    margin-bottom: 10px;
}

.service-option .price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.7rem;
}

.vat-toggle {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.vat-toggle label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
}

.vat-toggle input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.vat-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.vat-details p {
    margin: 8px 0;
    color: #2c3e50;
}

.vat-details p strong {
    color: #2c3e50;
}

.vat-details p em {
    color: #6c757d;
    font-style: italic;
}

.total-price {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    margin: 20px 0;
}

.total-price h3 {
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.total-price p {
    font-size: 1rem;
    font-weight: 700;
}

.payment-section {
    margin-top: 30px;
}

.customer-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.customer-details h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.payment-result {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    display: none;
}

.payment-success {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.payment-error {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

.courier-tracking-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tracking-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tracking-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tracking-field {
    margin-bottom: 10px;
}

.tracking-field label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #7f8c8d;
}

.tracking-field span {
    color: #2c3e50;
}

.tracking-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-collected {
    background: #d4edda;
    color: #155724;
}

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

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.tracking-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-top: 15px;
}

#route-section {
    margin: 20px 0;
    display: none;
}

#route-map {
    height: 300px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

#large-route-map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Vehicle Management Styles */
.vehicle-management {
    margin-top: 30px;
}

.vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vehicle-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    text-align: center;
}

.vehicle-item img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.vehicle-placeholder {
    width: 100px;
    height: 60px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin: 0 auto 10px auto;
    color: #666;
}

.vehicle-item h3 {
    margin-top: 0;
    color: #2c3e50;
}

.vehicle-item p {
    margin: 5px 0;
    color: #7f8c8d;
}

.add-vehicle-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courier-container {
        padding: 0 15px;
    }

    .quote-form {
        padding: 20px;
    }

    .vehicle-selection,
    .service-options {
        grid-template-columns: 1fr;
    }

    .quote-details,
    .tracking-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    #large-route-map {
        height: 300px;
    }

    .vehicle-list {
        grid-template-columns: 1fr;
    }

    .courier-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .courier-container {
        padding: 0 10px;
    }

    .quote-form {
        padding: 15px;
    }

    .vehicle-selection {
        gap: 10px;
    }

    .vehicle-option {
        padding: 15px;
    }

    .vehicle-option img {
        height: 60px;
    }

    .vehicle-option i {
        font-size: 2.5rem;
    }

    .vehicle-option h3 {
        font-size: 1rem;
    }

    .vehicle-option p {
        font-size: 0.8rem;
    }

    .quote-result {
        padding: 20px;
    }

    .customer-details {
        padding: 20px;
    }
}
/* Vehicle Management Dashboard Styles */
.vehicle-management {
    margin-top: 30px;
}

.vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vehicle-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vehicle-item img {
    max-width: 120px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.vehicle-placeholder {
    width: 120px;
    height: 80px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin: 0 auto 15px auto;
    color: #6c757d;
    border: 1px dashed #dee2e6;
}

.vehicle-item h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.vehicle-item p {
    margin: 5px 0;
    color: #495057;
    font-size: 0.9rem;
}

.vehicle-item .button {
    margin: 5px;
    font-size: 0.8rem;
    padding: 6px 12px;
}

.vehicle-form {
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.vehicle-form h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .vehicle-list {
        grid-template-columns: 1fr;
    }

    .vehicle-item {
        padding: 15px;
    }
}
/* Add Stop Section with Tooltip */
.add-stop-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.add-stop {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid #3498db;
}

.add-stop:hover {
    color: white;
    background-color: #3498db;
}

.add-stop i {
    margin-right: 8px;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .fa-question-circle {
    color: #7f8c8d;
    cursor: help;
    font-size: 16px;
    transition: color 0.3s;
}

.tooltip .fa-question-circle:hover {
    color: #3498db;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 280px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    font-weight: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Additional Stop Styling */
.additional-stop {
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

.additional-stop .input-with-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.additional-stop .remove-stop {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.additional-stop .remove-stop:hover {
    background: #c0392b;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tooltip */
@media (max-width: 768px) {
    .add-stop-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tooltip .tooltiptext {
        width: 250px;
        left: 0;
        transform: none;
    }

    .tooltip .tooltiptext::after {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .tooltip .tooltiptext {
        width: 220px;
        font-size: 13px;
    }

    .add-stop {
        padding: 6px 10px;
        font-size: 14px;
    }
}