/*****************************************
Quote Form Styles - Professional Multi-Step Form
For LMS Transport Solutions
******************************************/

/* Override contact section padding for quote page */
.contact-section {
    padding: 2rem 0 !important;
}

/* Override page header padding for quote page on mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 8rem 0 0rem 0 !important;
    }
}

/* Quote Form Container */
.quote-form-container {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

/* Form Navigation */
.form-navigation {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #1a365d;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.step.active .step-label {
    color: #1a365d;
    font-weight: 600;
}

.step.completed .step-label {
    color: #10b981;
    font-weight: 600;
}

/* Clickable step styles */
.step.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.clickable:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step.clickable:hover .step-label {
    color: #1a365d;
}

.step.clickable.completed:hover .step-number {
    background: #059669;
    transform: scale(1.05);
}

.step.clickable.completed:hover .step-label {
    color: #059669;
}

/* Disabled step styles */
.step.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.step.disabled .step-number {
    background-color: #f1f5f9;
    color: #cbd5e1;
}

.step.disabled .step-label {
    color: #cbd5e1;
}

/* Active step should not be clickable to itself */
.step.active {
    cursor: default;
}

.step.active .step-number {
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.2);
}

/* Progress Bar */
.progress-bar {
    height: 0.5rem;
    background: #e2e8f0;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: #1a365d;
    width: 0%;
    transition: width 0.3s ease;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-secondary {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

.btn-secondary:hover {
    background: #475569;
    border-color: #475569;
    color: white;
}

/* Form Sections */
.form-content {
    padding: 0;
}

.form-section {
    margin-bottom: 2rem;
    display: none;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section.active {
    display: block;
}

/* Section Headers */
.section-title {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: #1a365d;
}

.section-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

/* Required Fields */
.required-field::after {
    content: " *";
    color: #ef4444;
}

.help-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Inventory Categories */
.inventory-category {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-title {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Item Rows */
.item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.item-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

/* Photo Upload Buttons */
.photo-upload {
    position: relative;
    display: inline-block;
}

.photo-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.camera-btn {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.2);
}

.camera-btn:hover {
    background: linear-gradient(135deg, #2d5a8c 0%, #1a365d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 54, 93, 0.3);
}

.camera-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.2);
}

.camera-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.photo-preview {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    display: none;
    position: relative;
}

/* Remove photo button styling */
.remove-photo-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.remove-photo-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.remove-photo-btn:active {
    transform: scale(0.95);
}

    .remove-photo-btn svg {
        width: 12px;
        height: 12px;
        stroke: currentColor;
        stroke-width: 2;
    }
    
    /* Inventory error message styling */
    .inventory-error {
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
        border: none;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #92400e;
        padding: 1.5rem;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
        line-height: 1.6;
    }
    
    .inventory-error ul {
        padding-left: 1.5rem;
        margin-bottom: 0;
    }
    
    .inventory-error li {
        margin-bottom: 0.5rem;
        color: #78350f;
    }
    
    .inventory-error li:last-child {
        margin-bottom: 0;
    }

/* Additional Items Section */
.additional-section {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

/* Summary Cards */
.summary-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-card .card-header {
    background: none;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.summary-card h5 {
    color: #1a365d;
    font-weight: 700;
    margin: 0;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.submit-section .alert {
    border-radius: 1rem;
    border: none;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    color: #1e293b;
    padding: 2rem;
}

.submit-section .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
}

.submit-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 54, 93, 0.4);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .quote-form-container {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .form-navigation {
        position: static;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    
    .step-indicator {
        justify-content: space-between;
        gap: 0.15rem;
        margin-bottom: 0.75rem;
    }
    
    .step {
        flex: 1;
        min-width: 0;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .step-label {
        font-size: 0.65rem;
        line-height: 1;
    }
    
    .progress-bar {
        margin-top: 0.5rem;
        height: 3px;
    }
    
    .item-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        flex-wrap: wrap;
    }
    
    .item-name {
        flex: 1;
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .quantity-input {
        width: 60px;
        min-width: 60px;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        border: 2px solid #1a365d;
        background-color: #f8f9fa;
        color: #1a365d;
        font-weight: 600;
        text-align: center;
        border-radius: 0.375rem;
        box-shadow: 0 1px 3px rgba(26, 54, 93, 0.1);
    }
    
    .quantity-input:focus {
        border-color: #2d5a8c;
        box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
        background-color: #ffffff;
    }
    
    .quantity-input::placeholder {
        color: #6c757d;
        font-weight: 400;
    }
    
    .photo-upload {
        flex: 0 0 auto;
    }
    
    .camera-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .camera-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .inventory-category {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .category-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 0.5rem;
    }
    
    .photo-preview {
        width: 40px;
        height: 40px;
    }
    
    .remove-photo-btn {
        width: 20px;
        height: 20px;
        top: -6px;
        right: -6px;
    }
    
    .remove-photo-btn svg {
        width: 10px;
        height: 10px;
    }
    
    /* Make quantity input more obvious */
    .item-row .quantity-input {
        position: relative;
    }
    
    /* Add a subtle label to quantity inputs */
    .item-row .quantity-input::before {
        content: 'Qty';
        position: absolute;
        left: -2.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        color: #6c757d;
        font-weight: 500;
        background: #f8f9fa;
        padding: 0.1rem 0.3rem;
        border-radius: 0.2rem;
        border: 1px solid #dee2e6;
        white-space: nowrap;
    }
    
    @media (max-width: 480px) {
        .item-row .quantity-input::before {
            left: -2rem;
            font-size: 0.6rem;
            padding: 0.05rem 0.2rem;
        }
    }
}

@media (max-width: 480px) {
    .quote-form-container {
        padding: 0.25rem;
        margin: 0.25rem 0;
    }
    
    .form-navigation {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .step-indicator {
        margin-bottom: 0.5rem;
        gap: 0.1rem;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .step-label {
        font-size: 0.55rem;
    }
    
    .section-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .inventory-category {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .item-row {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .item-name {
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .quantity-input {
        width: 50px;
        min-width: 50px;
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        border: 2px solid #1a365d;
        background-color: #f8f9fa;
        color: #1a365d;
        font-weight: 600;
        text-align: center;
        border-radius: 0.25rem;
        box-shadow: 0 1px 2px rgba(26, 54, 93, 0.15);
    }
    
    .quantity-input:focus {
        border-color: #2d5a8c;
        box-shadow: 0 0 0 0.15rem rgba(26, 54, 93, 0.25);
        background-color: #ffffff;
    }
    
    .quantity-input.is-invalid {
        border-color: #dc2626;
        box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.25);
    }
    
    .quantity-input.is-invalid:focus {
        border-color: #dc2626;
        box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.25);
    }
    
    .quantity-input::placeholder {
        color: #6c757d;
        font-weight: 400;
    }
    
    .camera-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .camera-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .category-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .accordion-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .accordion-body {
        padding: 0.4rem;
    }
    
    .photo-preview {
        width: 35px;
        height: 35px;
    }
    
    .remove-photo-btn {
        width: 18px;
        height: 18px;
        top: -5px;
        right: -5px;
    }
    
    .remove-photo-btn svg {
        width: 9px;
        height: 9px;
    }
    
    /* Additional mobile optimizations */
    .form-section {
        padding: 0.75rem;
    }
    
    .form-section:last-child {
        padding-bottom: 0.75rem;
    }
    
    .navigation-buttons {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .summary-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .submit-section {
        padding: 1rem;
    }
    
    .submit-section .alert {
        padding: 1rem;
    }
    
    .submit-section .btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-navigation {
        box-shadow: 0 2px 10px rgba(26, 54, 93, 0.15);
    }
    
    .inventory-category:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
}

/* Focus and Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
input[type="file"]:focus + .photo-btn,
.camera-btn:focus {
    outline: 2px solid #1a365d;
    outline-offset: 2px;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accordion Inventory Styles */
.accordion-item {
    border: 1px solid rgba(26, 54, 93, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    color: #1a365d;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #1a365d;
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25);
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 0;
    border-top: 1px solid rgba(26, 54, 93, 0.1);
}

.accordion .alert {
    border-radius: 0.5rem;
    border: 1px solid #bee5eb;
    background-color: #d1ecf1;
    color: #0c5460;
    margin-bottom: 1.5rem;
}

/* Inventory Item Rows in Accordion */
.accordion-body .item-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-body .item-row:last-child {
    border-bottom: none;
}

/* Phone Number and Form Validation Styles */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-control.is-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 d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%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);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    display: block;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Date input specific styling */
input[type="date"].form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%236c757d' d='M8 0a.5.5 0 0 1 .5.5V1h4a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-10a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h4V.5A.5.5 0 0 1 8 0zM2.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-11z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Fix date input when invalid - ensure it remains clickable */
input[type="date"].form-control.is-invalid {
    padding-right: 0.75rem !important;
    background-image: none !important;
}

input[type="date"].form-control.is-invalid::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    position: relative;
    z-index: 10;
    margin-right: 0.5rem;
}

/* Phone input styling */
input[type="tel"].form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%236c757d' d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122L9.98 10.98a.678.678 0 0 1-.725-.332L6.332 7.725a.678.678 0 0 1-.332-.725l.549-1.805a.678.678 0 0 0-.122-.58L3.654 1.328z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* Address Section Styling */
.address-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.address-title {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.address-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1a365d 0%, #2d5a8c 100%);
    border-radius: 0.5rem 0 0 0.5rem;
}

/* Property type select styling */
.address-section .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Mobile responsiveness for address sections */
@media (max-width: 768px) {
    .address-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .address-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Google Places Autocomplete Styling */
.pac-container {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    z-index: 9999;
}

.pac-item {
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-selected {
    background-color: #1a365d !important;
    color: white !important;
}

.pac-item-selected .pac-item-query {
    color: white !important;
}

.pac-item-query {
    color: #1a365d;
    font-weight: 600;
}

.pac-matched {
    color: #dc3545;
    font-weight: 600;
}

.pac-item-selected .pac-matched {
    color: #ffc107 !important;
}

.pac-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%236c757d' d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3e%3c/svg%3e");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
}

/* Address input with autocomplete styling */
.address-section input[type="text"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%236c757d' d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Override for autocomplete focused state */
.address-section input[type="text"]:focus {
    background-image: none;
    padding-right: 0.75rem;
}

/* Disabled select styling */
.form-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    opacity: 0.65;
    cursor: not-allowed;
}

.form-select:disabled + .form-text {
    color: #6c757d;
    font-style: italic;
}

/* Service type dependent styling */
.service-dependent {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.service-dependent.disabled {
    opacity: 0.6;
    background-color: #f8f9fa;
}

/* Service Selection Notice */
.service-selection-notice .alert {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #0056b3;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.service-selection-notice .alert svg {
    color: #0056b3;
    flex-shrink: 0;
}

.service-selection-notice .alert strong {
    color: #003d82;
}

/* Address Section Divider */
.address-divider {
    border-top: 2px solid #e9ecef;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.divider-title {
    color: #1a365d;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.divider-title svg {
    color: #1a365d;
}

.divider-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
    font-style: italic;
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .service-selection-notice .alert {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .divider-title {
        font-size: 1.1rem;
    }
    
    .divider-subtitle {
        font-size: 0.85rem;
    }
    
    .address-divider {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}