body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    background-image: url('../images/repeating_meshed_grid.png');
    padding-bottom: 60px;
}

header {
    background-color: rgb(28, 26, 26) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

header img {
    max-height: 50px;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-label {
    font-weight: 500;
    color: #444;
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus,
.form-select:focus {
    border-color: rgb(255, 184, 27);
    box-shadow: 0 0 0 0.2rem rgba(255, 184, 27, 0.25);
}

.btn-primary {
    background-color: rgb(255, 184, 27);
    border-color: rgb(255, 184, 27);
    color: rgb(28, 26, 26);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgb(240, 170, 20);
    border-color: rgb(240, 170, 20);
    box-shadow: 0 5px 15px rgba(255, 184, 27, 0.3);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: rgb(255, 184, 27);
    border-color: rgb(255, 184, 27);
    color: rgb(28, 26, 26);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: rgb(240, 170, 20);
    border-color: rgb(240, 170, 20);
    color: rgb(28, 26, 26);
}

.btn-dark {
    background-color: rgb(28, 26, 26);
    border-color: rgb(28, 26, 26);
}

.btn-dark:hover {
    background-color: #000;
    border-color: #000;
}

footer {
    background-color: rgb(28, 26, 26) !important;
    padding: 20px 0;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
}

footer a {
    transition: color 0.3s, transform 0.3s;
}

footer a:hover {
    color: rgb(255, 184, 27) !important;
    transform: scale(1.1);
}

/* Product title styling - High specificity to override Bootstrap */
h1.product-title,
.product-title,
.card-body .product-title,
.card .product-title {
    font-family: 'futura-now-headline', 'Futura Now Headline Bold', 'Futura', 'Futura-Bold', 'FuturaStd-Bold', 'Arial Black', sans-serif !important;
    font-weight: bold !important;
    color: rgb(28, 26, 26) !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    font-size: 3rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Warranty content styling */
.warranty-content {
    line-height: 1.6;
    text-align: justify;
}

.warranty-content h3 {
    color: rgb(28, 26, 26);
    font-weight: 600;
    border-bottom: 2px solid rgb(255, 184, 27);
    padding-bottom: 0.5rem;
}

.warranty-content ol {
    padding-left: 1.5rem;
}

.warranty-content ol li {
    margin-bottom: 0.5rem;
}

/* Card header styling */
.card-body h2 {
    color: rgb(28, 26, 26);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.card-body h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 80px;
    background-color: rgb(255, 184, 27);
}

/* Form styling */
#warrantyForm {
    padding: 25px 30px;
    background-color: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Status badges */
.status-active,
.status-approved {
    background-color: rgba(21, 87, 36, 0.15);
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-out,
.status-rejected {
    background-color: rgba(114, 28, 36, 0.15);
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-pending {
    background-color: rgba(133, 100, 4, 0.15);
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-cancelled {
    background-color: rgba(56, 61, 65, 0.15);
    color: #383d41;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Alert styling */
.alert {
    border-radius: 6px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin: 0 1rem;
    }

    .row>.col-md-4,
    .row>.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    header img {
        max-height: 40px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    h1.product-title,
    .product-title,
    .card-body .product-title,
    .card .product-title {
        font-size: 2rem !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 768px) {

    h1.product-title,
    .product-title,
    .card-body .product-title,
    .card .product-title {
        font-size: 2.5rem !important;
        letter-spacing: 1.5px !important;
    }
}

/* No Orders Message Styling */
#no-orders-message {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    padding: 2rem;
}

#no-orders-message i {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* File Upload Styling */
.form-control[type="file"] {
    padding: 0.5rem;
    background-color: #f9f9f9;
    border: 2px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.form-control[type="file"]:focus {
    border-color: rgb(255, 184, 27);
    background-color: #fffbf0;
}

#carImagesCount,
#carLicencesCount {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

#carImagesCount.text-success,
#carLicencesCount.text-success {
    color: #28a745 !important;
}

#carImagesCount.text-danger,
#carLicencesCount.text-danger {
    color: #dc3545 !important;
}

/* Painted Disclaimer Styling */
#paintedDisclaimer {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

#paintedDisclaimer i {
    color: #f39c12;
}

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

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