:root {
    --quote-primary-color: #7bcb79;
    --quote-primary-hover: #6FA575;
    --quote-active-step-color: #006580;
    --quote-text-dark: #000000e9;
    --quote-text-muted: #6c757d;
    --quote-border-color: #E2E8F0;
    --quote-bg-light: #FAFAFA;
    --quote-card-bg: #FFFFFF;
    --quote-info-bg: #FFF9E6;
    --quote-info-border: #FFE5A3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.content-wrapper {
    background: var(--quote-bg-light);
    min-height: calc(100vh - 125px);
    color: var(--quote-text-dark);
}

.header {
    background: white;
    border-bottom: 1px solid var(--quote-border-color);
    padding: 1rem 0;
}

.main-container{
    position: relative;
    z-index: 1;
}

.map-base{
    top: -5px;
    left: 0px;
    right: 0px;
    width: 100%;
    position: absolute;
    z-index: -1;
}

.logo { height: 35px; }

.page-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--quote-text-dark);
}

.help-link {
    color: var(--quote-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}

.progress-steps {
    padding: 15px 0;
}

.steps-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: nowrap;
    max-width: 100%;
}

.step {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 0.375rem 1rem;
    gap: 0.625rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.step.active {
    flex-direction: row;
    border: 1px solid var(--quote-active-step-color);
    border-radius: 10px;
    background: white;
    gap: 0.625rem;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #737373;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--quote-active-step-color);
    color: white;
    margin-bottom: 0;
}

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

.step-label {
    font-size: 1rem;
    color: #737373;
    font-weight: 400;
    transition: all 0.3s ease;
}

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

.step.completed .step-label {
    color: var(--quote-text-dark);
    font-weight: 400;
}

.step-line {
    width: 100px;
    height: 2px;
    background: #D4D4D4;
    margin: 0 1rem;
    transition: background 0.3s ease;
    align-self: flex-start;
    margin-top: 20px;
    flex-shrink: 0;
}

.step-line.completed {
    background: var(--quote-active-step-color);
}

.form-container {
    max-width: 500px;
    margin: 2rem auto;
}
.fw-600 {
    font-weight: 600 !important;
}
.fw-700 {
    font-weight: 700 !important;
}
.main-card{
    display: flex;
    padding: 8px;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
    background: #F5F5F5;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.form-card {
    background: var(--quote-bg-light);
    padding: 8px 12px;
    border: 1px solid var(--quote-border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.bg-light-quote {
    background: var(--quote-bg-light) !important;
}
.step-content {
    display: none;
}

.step-content.active {
    display: flex;
    padding-bottom: 2rem;
    flex-direction: column;
    gap: 1rem;
}

.back-link {
    color: var(--quote-active-step-color);
    text-decoration: none;
    font-size: 1rem;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--quote-active-step-color);
    text-decoration: underline;
    opacity: 0.8;
}

.back-link:active {
    opacity: 0.7;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 4px;
    margin: 0px;
    color: var(--quote-text-dark);
}

.move-field{
    display: flex;
    align-self: center;
    gap: 0.8rem;
}

.form-label {
    font-size: 0.9375rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-label.required::before {
    content: "* ";
    color: #dc3545;
}

.form-control, .form-select {
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--quote-border-color);
    font-size: 0.9375rem;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--quote-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(127, 182, 133, 0.15);
}

.country-selector {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--quote-text-dark);
    font-weight: 400;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.country-selector:focus {
    outline: none;
    box-shadow: none;
}

.country-label-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.phone-input-group {
    display: flex;
    gap: 12px;
}

.phone-input-group.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.phone-code-wrapper {
    display: flex;
    align-items: center;
    padding: 0 0.25rem 0 0.875rem;
    border-radius: 6px;
    border: 1px solid var(--quote-border-color);
    background: white;
}

.phone-code-select {
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--quote-text-dark);
    padding: 0.625rem 0.25rem 0.625rem 0;
    cursor: pointer;
    outline: none;
    appearance: auto;
}

.phone-code-select:focus {
    outline: none;
    box-shadow: none;
}

.pet-form {
    border: 1px solid var(--quote-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--quote-bg-light);
}

.pet-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pet-form-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--quote-text-dark);
}

.remove-pet-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}

.remove-pet-btn img {
    width: 10px;
    height: 10px;
    margin-right: 4px;
}

.remove-pet-btn:hover {
    color: #666;
    text-decoration: underline;
}

.right-bar-color{
    color: var(--quote-text-muted);
}
.add-pet-link {
    color: #70BA6F;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.add-pet-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.alert-info {
    background: var(--quote-info-bg);
    border: 1px solid var(--quote-info-border);
    border-radius: 6px;
    padding: 0.875rem 1rem;
    display: flex;
    gap: 0.625rem;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    align-items: flex-start;
}

.alert-info-icon {
    background: #E8E8E8;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: #666;
}

.btn-primary-quote {
    background: var(--quote-primary-color) !important;
    border: none;
    border-radius: 50px !important;
    padding: 0.75rem 2.5rem !important;
    font-weight: 600;
    color: white !important;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-primary-quote:hover:not(:disabled) {
    background: var(--quote-primary-hover) !important;
}

.btn-primary-quote:disabled {
    background: #ccc !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.footer {
    background: white;
    border-top: 1px solid var(--quote-border-color);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--quote-text-muted);
}

.footer-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;

    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loading-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    border-image: conic-gradient(#7bcb79 70%, transparent 70%) 1;
    border-image: none;
    border-top-color: #7bcb79;
    border-right-color: rgba(123, 203, 121, 0.4);
    border-bottom-color: transparent;
    border-left-color: transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #fff;
}

.optional-label {
    color: var(--quote-text-muted);
    font-weight: 400;
    font-size: 0.875rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    border: 2px solid #ccc;
}

.form-check-input:checked {
    background-color: #2196F3;
    border-color: #2196F3;
}

.form-check-input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.15);
}

.consent-label {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--quote-text-dark);
}

.consent-subtext {
    color: var(--quote-text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.modal-content {
    border-radius: 12px;
    border: 1px solid #f5f5f5;
    overflow: hidden;
}

.quote-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 12px 20px;
    background: #fafafa;
}

.quote-modal-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #171717;
    margin: 0;
}

.quote-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #737373;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    transition: background-color 0.15s;
}

.quote-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #171717;
}

.quote-modal-close svg {
    width: 18px;
    height: 18px;
}

.quote-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
}

.quote-modal-body p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #525252;
    margin: 0;
}

.quote-modal-email-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fafafa;
    border-radius: 8px;
    padding: 8px;
    width: 100%;
}

.quote-modal-email-card .email-icon {
    font-size: 16px;
    line-height: 1.5;
    flex-shrink: 0;
}

.quote-modal-email-card .email-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.quote-modal-email-card .email-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.18px;
    color: #171717;
    margin: 0;
}

.quote-modal-email-card .email-text strong {
    font-weight: 500;
}

.quote-modal-email-card .email-edit-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #525252;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.quote-modal-email-card .email-edit-link:hover {
    color: #171717;
}

.quote-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 54px;
    padding: 8px 20px;
    background: #fafafa;
}

.btn-quote-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 38px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #fff;
    background: #70ba6f;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-quote-modal:hover:not(:disabled) {
    background: #63a862;
}

.btn-quote-modal svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.quote-modal-input {
    width: 100%;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #171717;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: border-color 0.2s;
}

.quote-modal-input:focus {
    outline: none;
    border-color: #7bcb79;
    box-shadow: 0 0 0 3px rgba(123, 203, 121, 0.15);
}

.knowledge-base-link {
    font-weight: 600;
    color: #006580;
    text-decoration: underline;
}

.knowledge-base-link:hover {
    color: #004d60;
}

.searchable-select-container {
    position: relative;
}

.searchable-dropdown {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.searchable-option {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.searchable-option:last-child {
    border-bottom: none;
}

.searchable-option:hover {
    background-color: #f8f9fa !important;
}

.searchable-option.active {
    background-color: #007bff !important;
    color: white !important;
}

.input-group .form-select {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.searchable-input[readonly] {
    background-color: white;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 12px;
    user-select: none;
}

.searchable-select-container .searchable-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.field-wrapper {
    position: relative;
}

.field-wrapper .error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
}

.location-autocomplete {
    width: 100%;
}

/* Google Places Autocomplete dropdown styling */
.pac-container {
    border-radius: 8px;
    border: 1px solid var(--quote-border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pac-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9375rem;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover,
.pac-item-selected {
    background-color: var(--quote-bg-light);
}

.pac-item-query {
    color: var(--quote-text-dark);
    font-weight: 500;
}

.pac-matched {
    font-weight: 600;
    color: var(--quote-active-step-color);
}

.pac-icon {
    margin-right: 0.5rem;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--quote-text-muted);
    margin-top: 0.25rem;
}


@media (max-width: 991px) {
    .progress-steps {
        padding: 15px 0;
    }
    
    .steps-wrapper {
        padding: 0 0.75rem;
    }
    
    .step-line {
        width: 80px;
        margin: 0 0.75rem;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .progress-steps {
        padding: 12px 0;
    }
    
    .form-container {
        margin: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .steps-wrapper {
        padding: 0 0.5rem;
        justify-content: space-between;
        font-size: 0.875rem;
    }
    
    .step-line {
        width: 40px;
        margin: 0 0.5rem;
        min-width: 30px;
        align-self: center;
    }
    
    .step {
        padding: 0.375rem 0.75rem;
        gap: 0.5rem;
    }
    
    .step.active {
        padding: 0.3rem 0.875rem 0.3rem 0.3rem;
        gap: 0.5rem;
    }
    
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 0.9375rem;
    }
    
    .step-label {
        font-size: 0.8125rem;
    }
}

@media (max-width: 576px) {
    .map-base{
        display: none;
    }

    .progress-steps {
        padding: 8px 0;
    }
    
    .steps-wrapper {
        padding: 0 0.25rem;
        gap: 0;
    }
    
    .step-line {
        width: 20px;
        margin: 0 0.25rem;
        min-width: 15px;
    }
    
    .step {
        padding: 0.25rem 0.5rem;
        gap: 0.375rem;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    
    .step.active {
        padding: 0.25rem 0.5rem;
        gap: 0.375rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .steps-wrapper {
        padding: 0 0.125rem;
    }
    
    .step-line {
        width: 12px;
        margin: 0 0.125rem;
        min-width: 10px;
    }
    
    .step {
        padding: 0.25rem 0.375rem;
    }
    
    .step.active {
        padding: 0.25rem 0.375rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
    
    .step-label {
        font-size: 0.6875rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}