﻿/* Quote Page Styles - Enhanced Button Styling */
.quote-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.quote-form-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

    .quote-form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #0d6efd, #17a2b8);
    }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

    .section-title::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 50px;
        height: 3px;
        background: #0d6efd;
        border-radius: 3px;
    }

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.05rem;
}

.form-control,
.form-select {
    border: 2px solid #dee2e6;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
        background-color: #ffffff;
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.form-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.form-check-label {
    line-height: 1.6;
    color: #495057;
    font-size: 0.95rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ENHANCED BUTTON STYLING */
.btn-primary-custom {
    background: #0d6efd;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-primary-custom::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.7s ease;
    }

    .btn-primary-custom:hover {
        background: #0b5ed7;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
        color: white;
    }

        .btn-primary-custom:hover::before {
            left: 100%;
        }

    .btn-primary-custom:active {
        background: #0a58ca;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }

    .btn-primary-custom:focus {
        outline: none;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
    }

    .btn-primary-custom i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
        transition: transform 0.3s ease;
    }

    .btn-primary-custom:hover i {
        transform: scale(1.1);
    }

    /* Button loading state */
    .btn-primary-custom.loading {
        background: #6c757d;
        cursor: not-allowed;
    }

        .btn-primary-custom.loading::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced form feedback */
.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:focus):not(:placeholder-shown) {
    border-color: #198754;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .quote-form-card {
        padding: 2.5rem;
    }

    .quote-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .quote-form-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .btn-primary-custom {
        padding: 0.9rem 2rem;
        font-size: 1.05rem;
    }

    .quote-section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .quote-form-card {
        padding: 1.75rem;
        border-radius: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .form-control,
    .form-select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .btn-primary-custom {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .form-text {
        font-size: 0.85rem;
    }
}

/* Form validation styling */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-check-input:invalid {
    border-color: #dc3545;
}

    .was-validated .form-check-input:invalid ~ .form-check-label {
        color: #dc3545;
    }

.was-validated .form-check-input:valid {
    border-color: #198754;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.was-validated .form-select:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-tooltip,
.was-validated .form-check-input:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-tooltip {
    display: block;
}
