#yacht-quote-builder {
    text-align: center;
    padding: 30px;
    font-family: inherit;
    color: inherit;
}

.yqb-response-block {
    margin: 20px auto;
    max-width: 820px; /* prevent super wide buttons on large screens */
}

.yqb-response-img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    margin: 0 auto 10px;
}

/* === BUTTON STYLING (enforced to override Elementor) === */
.elementor-button-wrapper {
    display: block; /* each wrapper spans the container */
    width: 100%;
    margin: 10px 0;
}

.elementor-button-wrapper .yqb-response-btn,
.elementor-button-wrapper .yqb-back-btn {
    display: inline-flex;         /* center multi-line text */
    align-items: center;
    justify-content: center;
    width: 100%;                  /* fill wrapper width */
    max-width: 100%;
    padding: 0.9em 1.1em;
    font-size: 1em;
    font-family: inherit !important;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    background-color: #6cd0cd !important; /* solid turquoise */
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    line-height: 1.35;
    white-space: normal !important;  /* allow wrapping */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Hover Effect */
.elementor-button-wrapper .yqb-response-btn:hover,
.elementor-button-wrapper .yqb-back-btn:hover {
    background-color: #5cbdbb !important;
    transform: scale(1.03);
    color: #ffffff !important;
}

/* === BACK BUTTON VARIATION === */
.yqb-back-btn {
    margin-top: 30px;
}

/* === INFO BOXES === */
.yqb-welcome-box,
.yqb-final-box {
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
}

/* === FORM FIELDS === */
.yqb-contact-form input,
.yqb-contact-form textarea {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 10px auto;
    padding: 10px;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.yqb-contact-form textarea {
    height: 100px;
}

/* === THANK YOU BOX === */
.yqb-thankyou {
    font-size: 20px;
    padding: 20px;
    background: #e7f7e7;
    border-left: 4px solid #28a745;
    margin-top: 30px;
    text-align: center;
    font-family: inherit;
    color: inherit;
}

/* === SUMMARY LIST === */
.yqb-summary ul {
    text-align: left;
    max-width: 600px;
    margin: auto;
    padding: 0;
}

.yqb-summary li {
    margin-bottom: 15px;
}

/* === NUMBER INPUT SPINNERS === */
/* Re-enable native arrows */
input[type=number] {
    -moz-appearance: auto;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button;
    margin: 0;
    opacity: 1;
    height: auto;
}

/* === HELP ICON === */
.yqb-help-icon {
    display:inline-block;
    margin-left:6px;
    cursor:help;
    color:#555;
}
.yqb-help-icon:hover {
    color:#0073aa;
}

/* === RESPONSIVE SERVICE TABLES === */
.yqb-service-table {
    width: 100%;
    border-collapse: collapse;
}
.yqb-service-table th,
.yqb-service-table td {
    padding: 8px;
    border: 1px solid #e5e7eb;
}

/* Mobile view: stack cells */
@media (max-width: 720px) {
    .yqb-service-table thead {
        display: none; /* hide header */
    }
    .yqb-service-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 10px;
        background: #f9fafb;
    }
    .yqb-service-table td {
        display: block;
        text-align: center;
        border: none;
        padding: 6px 0;
    }
    .yqb-service-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        margin-bottom: 4px;
        color: #374151;
    }
    .yqb-service-table .srv-hours {
        width: 70%;
        max-width: 220px;
        margin: 0 auto;
        text-align: center;
    }
    .yqb-service-table tfoot td {
        display: block;
        text-align: center;
        border: none;
        padding: 6px 0;
    }
}

/* --- Responsive Buttons: adjustments by screen size --- */
@media (min-width: 640px) {
    #yacht-quote-builder .elementor-button-wrapper {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    #yacht-quote-builder {
        padding: 16px;
    }
    #yacht-quote-builder .elementor-button-wrapper .yqb-response-btn,
    #yacht-quote-builder .elementor-button-wrapper .yqb-back-btn {
        font-size: 16px;
        padding: 0.95em 1em;
    }
}

/* tighter spacing between stacked buttons */
#yacht-quote-builder .elementor-button-wrapper + .elementor-button-wrapper {
    margin-top: 8px;
}
