.cpa-get-quote {
    --cpa-gq-primary-color: #fa5e06;
    --cpa-gq-primary-color-hover: #d95407;
}

.cpa-get-quote-trigger {
    padding: 8px 24px;
    font-size: 16px;
    background: var(--cpa-gq-primary-color);
    color: #fff;
    font-weight: bold;
    border: 1px solid var(--cpa-gq-primary-color);
    border-radius: 0;
}

.cpa-get-quote-trigger:hover,
.cpa-get-quote-trigger:focus {
    background: var(--cpa-gq-primary-color-hover);
    border-color: var(--cpa-gq-primary-color-hover);
    color: #fff;
}

.cpa-get-quote-trigger.is-outlined {
    background: transparent;
    color: var(--cpa-gq-primary-color);
}

.cpa-get-quote-trigger.is-outlined:hover,
.cpa-get-quote-trigger.is-outlined:focus {
    background: var(--cpa-gq-primary-color);
    border-color: var(--cpa-gq-primary-color);
    color: #fff;
}

.cpa-get-quote-modal .modal-content {
    max-width: 1080px;
}

.cpa-get-quote-modal .modal-header {
    border-bottom: 0;
    padding-bottom: 0;
}

.cpa-get-quote-modal .modal-header-right {
    justify-content: flex-end;
}

.cpa-get-quote-modal .modal-close {
    font-size: 30px;
    line-height: 1;
}

.cpa-gq-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.cpa-gq-progress-line {
    flex: 1;
    height: 2px;
    background: #9a9a9a;
}

.cpa-gq-progress-step {
    width: 50px;
    height: 50px;
    border: 2px solid #9a9a9a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a3a3a;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
}

.cpa-gq-progress-step span {
    transform: translateY(-1px);
}

.cpa-gq-progress-step.is-active,
.cpa-gq-progress-step.is-complete {
    border-color: #fa5e06;
    color: #fa5e06;
}

.cpa-gq-progress-step.is-complete + .cpa-gq-progress-line,
.cpa-gq-progress-step.is-active + .cpa-gq-progress-line {
    background: #fa5e06;
}

.cpa-gq-last-page {
    text-align: right;
    margin: 0 6px 42px 0;
    font-size: 14px;
    color: #3f3f3f;
    font-weight: 600;
}

.cpa-gq-form {
    padding-top: 10px;
}

.cpa-gq-form .cpa-gq-step {
    display: none;
}

.cpa-gq-form .cpa-gq-step.is-active {
    display: block;
}

.cpa-gq-form .form-group {
    margin-bottom: 22px;
}

.cpa-gq-form .form-group label,
.cpa-gq-form .cpa-gq-fieldset legend {
    display: block;
    font-weight: 700;
    color: #3f4550;
    font-size: 18px;
    margin-bottom: 10px;
}

.cpa-gq-form .required {
    color: #fa5e06;
}

.cpa-gq-form input[type="text"],
.cpa-gq-form input[type="email"],
.cpa-gq-form input[type="tel"],
.cpa-gq-form input[type="number"],
.cpa-gq-form input[type="date"],
.cpa-gq-form select,
.cpa-gq-form textarea,
.cpa-gq-form input[type="file"] {
    width: 100%;
    border: 1px solid #9f9f9f;
    padding: 13px 16px;
    font-size: 16px;
    color: #42444d;
    background: #f2f2f2;
}

.cpa-gq-form input:focus,
.cpa-gq-form select:focus,
.cpa-gq-form textarea:focus {
    outline: none;
    border-color: #fa5e06;
}

.cpa-gq-form .form-help {
    margin-top: 8px;
    font-size: 14px;
    color: #4f4f4f;
}

.cpa-gq-fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 22px;
}

.cpa-gq-fieldset .cpa-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
}

.cpa-gq-fieldset input[type="radio"] {
    width: 22px;
    height: 22px;
    margin-right: 14px;
}

.cpa-gq-form .form-row {
    display: flex;
    gap: 20px;
}

.cpa-gq-form .half-width {
    flex: 1;
}

.cpa-gq-actions {
    margin-top: 28px;
    display: flex;
    gap: 10px;
}

.cpa-gq-actions .btn {
    min-width: 102px;
    padding: 12px 20px;
    font-size: 16px;
}

.cpa-gq-actions .btn-secondary {
    background: #fff;
    color: var(--cpa-gq-primary-color);
    border: 1px solid var(--cpa-gq-primary-color);
}

.cpa-gq-actions .btn-secondary:hover,
.cpa-gq-actions .btn-secondary:focus {
    background: var(--cpa-gq-primary-color);
    color: #fff;
}

.cpa-gq-actions .btn-primary {
    background: var(--cpa-gq-primary-color);
    color: #fff;
    border: 1px solid var(--cpa-gq-primary-color);
}

.cpa-gq-actions .btn-primary:hover,
.cpa-gq-actions .btn-primary:focus {
    background: var(--cpa-gq-primary-color-hover);
    border-color: var(--cpa-gq-primary-color-hover);
}

.cpa-gq-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cpa-gq-actions .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cpa-gq-spin 0.6s linear infinite;
    margin-right: 6px;
}

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

.cpa-gq-message {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 4px;
}

.cpa-gq-message.error {
    background: #fce9e9;
    border-left: 4px solid #d63638;
    color: #8a1f2a;
}

.cpa-gq-message.success {
    background: #e5f4e9;
    border-left: 4px solid #00a32a;
    color: #195825;
}

.cpa-gq-message .dashicons {
    margin-right: 6px;
}

@media (max-width: 1024px) {
    .cpa-get-quote-modal .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .cpa-gq-progress-step {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .cpa-gq-last-page {
        font-size: 13px;
    }

    .cpa-gq-form .form-group label,
    .cpa-gq-form .cpa-gq-fieldset legend,
    .cpa-gq-fieldset .cpa-radio-label,
    .cpa-gq-form input[type="text"],
    .cpa-gq-form input[type="email"],
    .cpa-gq-form input[type="tel"],
    .cpa-gq-form input[type="number"],
    .cpa-gq-form input[type="date"],
    .cpa-gq-form select,
    .cpa-gq-form textarea,
    .cpa-gq-form input[type="file"],
    .cpa-gq-form .form-help,
    .cpa-gq-actions .btn {
        font-size: 16px;
    }
}

.cpa-gq-postcode-wrap {
    position: relative;
}

#cpa-gq-postcode-search {
    padding-right: 46px;
}

.cpa-gq-postcode-clear {
    all: unset;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8b8f98;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.cpa-gq-postcode-clear:hover,
.cpa-gq-postcode-clear:focus {
    color: #3f4550;
    background-color: transparent;
    outline: none;
}

.cpa-gq-postcode-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #9f9f9f;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
}

.cpa-gq-postcode-results .cpa-gq-postcode-option,
.cpa-gq-postcode-results .cpa-gq-postcode-no-results {
    padding: 10px 16px;
    font-size: 15px;
    color: #42444d;
    cursor: pointer;
}

.cpa-gq-postcode-results .cpa-gq-postcode-option:hover,
.cpa-gq-postcode-results .cpa-gq-postcode-option:focus {
    background: #fa5e06;
    color: #fff;
    outline: none;
}

.cpa-gq-postcode-results .cpa-gq-postcode-no-results {
    color: #888;
    cursor: default;
}

.cpa-gq-email-status.is-info {
    color: #4f4f4f;
}

.cpa-gq-email-status.is-success {
    color: #195825;
}

.cpa-gq-email-status .dashicons {
    margin-right: 6px;
    vertical-align: text-bottom;
}

.cpa-gq-email-status.is-error {
    color: #c91a1a;
}

.cpa-gq-email-actions {
    margin-top: 10px;
}

.cpa-gq-email-actions .btn {
    min-width: 132px;
}

.cpa-gq-otp-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.cpa-gq-otp-row input[type="text"] {
    flex: 1;
    min-width: 140px;
}

.cpa-gq-otp-row .btn {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cpa-gq-form .form-row,
    .cpa-gq-progress {
        flex-wrap: wrap;
    }

    .cpa-gq-progress-line {
        min-width: 28px;
    }

    .cpa-gq-last-page {
        margin-top: 6px;
        text-align: left;
        margin-bottom: 24px;
    }

}
