* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 35px 16px;
    min-height: 100vh;
    background: #f3f3f3;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CLOSE BUTTON */
.close-form {
    position: fixed;
    top: 16px;
    right: 18px;
    display: inline-block;
    padding: 10px 16px;
    background: #ffffff;
    color: #d71920;
    border: 2px solid #d71920;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
}

.close-form:hover {
    background: #d71920;
    color: #ffffff;
}

.close-form:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 3px;
}

/* QUOTE BOX */
.quote-card {
    background: #d71920;
    color: #ffffff;
    width: 100%;
    max-width: 650px;
    padding: 35px 40px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    text-align: center;
}

/* LOGO */
.quote-logo {
    display: block;
    width: 150px;
    max-width: 65%;
    height: auto;
    margin: 0 auto 25px;
}

/* HEADINGS AND TEXT */
.quote-card h1 {
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 18px;
}

.quote-card h2 {
    font-size: 25px;
    line-height: 1.35;
    margin: 0 0 22px;
}

.quote-card p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.phone-number {
    display: block;
    color: #ffffff;
    font-size: 27px;
    font-weight: bold;
    text-decoration: none;
    margin: 15px 0 25px;
}

/* FORM FIELDS */
.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label,
.field-question {
    display: block;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 9px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid #eeeeee;
    border-radius: 7px;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 17px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid #8dc5ff;
    outline-offset: 2px;
}

/* RADIO BUTTONS */
.radio-options {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.radio-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    cursor: pointer;
}

.radio-options input {
    width: 20px;
    height: 20px;
    accent-color: #007bff;
}

/* BUTTONS */
.quote-button {
    display: inline-block;
    min-height: 50px;
    padding: 14px 28px;
    border: none;
    border-radius: 7px;
    background: #007bff;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.quote-button:hover {
    background: #0056b3;
}

.quote-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* PROGRESS */
.progress-label {
    font-size: 15px !important;
    margin: 0 0 10px !important;
}

.progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}

.progress-fill {
    width: 25%;
    height: 100%;
    background: #ffffff;
    transition: width 0.25s ease;
}

/* FORM STEPS */
.quote-step {
    display: none;
}

.quote-step.active {
    display: block;
}

/* CONFIRMATION SCREEN */
.success-screen {
    padding: 25px 0;
}

.success-screen .quote-logo {
    width: 180px;
    margin-bottom: 30px;
}

.success-screen h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.success-screen p {
    margin-bottom: 25px;
}

/* TABLET */
@media (max-width: 1024px) {
    .quote-card {
        max-width: 600px;
        padding: 32px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    body {
        padding: 65px 12px 18px;
        align-items: flex-start;
    }

    .close-form {
        top: 10px;
        right: 12px;
        padding: 10px 14px;
    }

    .quote-card {
        padding: 26px 20px;
        border-radius: 10px;
    }

    .quote-logo {
        width: 125px;
        margin-bottom: 22px;
    }

    .quote-card h1 {
        font-size: 27px;
    }

    .quote-card h2 {
        font-size: 22px;
    }

    .quote-card p {
        font-size: 17px;
    }

    .phone-number {
        font-size: 24px;
    }

    .form-group label,
    .field-question {
        font-size: 16px;
    }

    .button-row {
        flex-direction: column;
        gap: 12px;
    }

    .quote-button {
        width: 100%;
        text-align: center;
    }
}