/* ========== GENERAL WRAPPER / HEADER ========== */

.ecodeco-warranty-wrapper {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
}

.ecodeco-warranty-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

/* ========== TOP INPUT CARD (SERIAL + CAPTCHA) ========== */

.ecodeco-warranty-card {
    border: 1px solid #d3d6da;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    background: #fff;
    margin-bottom: 2rem;
}

.ecodeco-label {
    font-size: .9rem;
    font-weight: 500;
    color: #000;
    display: block;
    margin-bottom: .4rem;
}

.ecodeco-input {
    width: 100%;
    border: 1px solid #b4b8bf;
    border-radius: 8px;
    padding: .8rem .9rem;
    font-size: 1rem;
    margin-bottom: .8rem;
    outline: none;
    background-color: #fff;
    color: #000;
}
.ecodeco-input:focus {
    border-color: #0070c9;
    box-shadow: 0 0 0 3px rgba(0,112,201,0.2);
}

.ecodeco-help-link {
    font-size: .8rem;
    margin-bottom: 1rem;
}
.ecodeco-help-link a {
    color: #0070c9;
    text-decoration: none;
}
.ecodeco-help-link a:hover {
    text-decoration: underline;
}

.ecodeco-captcha-block {
    margin-bottom: 1rem;
}

.ecodeco-button {
    background: #f5f9ff;
    border: 1px solid #b4c8ff;
    color: #003a99;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    padding: .7rem 1.2rem;
    cursor: pointer;
}
.ecodeco-button:hover {
    background: #e9f0ff;
}

/* ========== STATUS / ERROR MESSAGES ========== */

.ecodeco-loading {
    font-size: .9rem;
    color: #444;
    margin-top: 1rem;
}
.ecodeco-error-card {
    border: 1px solid #e5a2a2;
    background: #fff5f5;
    color: #7a1e1e;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: .9rem;
    line-height: 1.4;
}

/* ========== Serial number finding insructions ========== */
/* Serial number help block */
.ecodeco-help-link{
    margin-top: 8px;
    padding-top: 6px;
}

.ecodeco-help-title{
    margin: 0 0 6px;
    font-size: 0.85rem;
    line-height: 1.25;
    color: #41663c;
}

.ecodeco-help-list{
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #444;
}

.ecodeco-help-list li{
    margin: 2px 0;
    padding-left: 16px;
    position: relative;
}

/* subtle bullet */
.ecodeco-help-list li::before{
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    position: absolute;
    left: 0;
    top: 0.55em;
}

/* ========== WARRANTY RESULT CARD ========== */

.ecodeco-result-card {
    border: 1px solid #d3d6da;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    background: #fff;
    padding: 1.25rem 1.5rem 2rem 1.5rem;
    margin-top: 1rem;
}

/* Row 1: two-column top section (info + coverage) */
.ecodeco-result-topgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 680px) {
    .ecodeco-result-topgrid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

/* Sub-cards in Row 1 */
.ecodeco-info-card,
.ecodeco-coverage-card {
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1rem 1.1rem 1rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.03);
}

/* Product info text */
.ecodeco-info-title {
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    margin-bottom: .6rem;
}
.ecodeco-info-line {
    color: #333;
    font-size: .9rem;
    line-height: 1.4;
    margin-bottom: .4rem;
}
.ecodeco-info-line strong {
    font-weight: 500;
    color: #000;
}

/* Coverage block */
.ecodeco-coverage-card.active .ecodeco-coverage-title {
    color: #007014;
    font-weight: 600;
}
.ecodeco-coverage-card.expired .ecodeco-coverage-title {
    color: #8a0000;
    font-weight: 600;
}
.ecodeco-coverage-title {
    font-size: 1rem;
    margin-bottom: .5rem;
}
.ecodeco-coverage-desc {
    font-size: .9rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: .8rem;
}
.ecodeco-coverage-cta {
    margin-top: auto;
}
.ecodeco-service-btn {
    background: #efefef;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    padding: .7rem 1rem;
    font-size: .9rem;
    cursor: pointer;
}
.ecodeco-service-btn:hover {
    background: #e5e5e5;
}

/* Row 2: product image block */
.ecodeco-image-card-large {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.ecodeco-image-frame-large {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fafafa;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ecodeco-image-frame-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
@media (max-width: 480px) {
    .ecodeco-image-frame-large {
        width: 220px;
        height: 220px;
    }
}

/* Row 3: service request form wrapper card */
.ecodeco-service-form-wrap {
    display: block;
    margin-top: 1rem;
}

.ecodeco-service-form-card {
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.03);
    padding: 1rem 1rem 1.5rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.ecodeco-service-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: .25rem;
}
.ecodeco-service-form-note {
    font-size: .85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Form labels */
.ecodeco-form-label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: #000;
    margin-top: 1rem;
    margin-bottom: .4rem;
}

/* Base field style for inputs / selects / textareas */
.ecodeco-field {
    width: 100%;
    min-height: 44px;
    border: 1px solid #4a4f57;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    font-size: .9rem;
    line-height: 1.3;
    padding: .6rem .7rem;
    outline: none;
    box-shadow: 0 0 0 0 transparent;
}
.ecodeco-field:focus {
    border-color: #0070c9;
    box-shadow: 0 0 0 3px rgba(0,112,201,0.2);
}

/* Textareas reuse .ecodeco-field but need taller behavior */
.ecodeco-field.textarea {
    min-height: 80px;
    resize: vertical;
}

/* File input */
.ecodeco-field-file {
    display: block;
    width: 100%;
    font-size: .9rem;
    padding: .4rem 0;
    border: none;
    background: transparent;
    color: #000;
}

/* The "Your name" row */
.ecodeco-name-row {
    display: flex;
    flex-wrap: nowrap;
    gap: .75rem;
    align-items: flex-start;
}

.ecodeco-name-row .name-short {
    flex: 0 0 90px;
    min-width: 90px;
    max-width: 110px;
    min-height: 44px;
    border: 1px solid #4a4f57;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    font-size: .9rem;
    line-height: 1.3;
    padding: .6rem .7rem;
}
.ecodeco-name-row .name-long {
    flex: 1;
    min-height: 44px;
    border: 1px solid #4a4f57;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    font-size: .9rem;
    line-height: 1.3;
    padding: .6rem .7rem;
}
.ecodeco-name-row .name-long::placeholder {
    color: #6b6f75;
}

.ecodeco-name-row .name-short:focus,
.ecodeco-name-row .name-long:focus {
    border-color: #0070c9;
    box-shadow: 0 0 0 3px rgba(0,112,201,0.2);
    outline: none;
}

/* Stack vertically on narrow screens */
@media (max-width: 480px) {
    .ecodeco-name-row {
        flex-wrap: wrap;
    }
    .ecodeco-name-row .name-short {
        flex: 0 0 90px;
    }
    .ecodeco-name-row .name-long {
        flex: 1 1 100%;
    }
}

/* Submit button at bottom of form */
.ecodeco-request-submit-btn {
    margin-top: 1.5rem;
    background: #efefef;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    padding: .7rem 1rem;
    font-size: .9rem;
    cursor: pointer;
}
.ecodeco-request-submit-btn:hover {
    background: #e5e5e5;
}

/* Status message under the button */
.ecodeco-form-status {
    margin-top: .8rem;
    font-size: .85rem;
    line-height: 1.4;
}
.ecodeco-form-status.ok {
    color: #007014;
}
.ecodeco-form-status.err {
    color: #8a0000;
}
/* ======================================================
   Scoped final override for phone field styling.
   We target it inside #ecodeco-service-form-wrap so we
   beat the theme's generic form input styles.
   ====================================================== */

#ecodeco-service-form-wrap input[name="customer_phone"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #ffffff !important;
    border: 1px solid #4a4f57 !important;
    border-radius: 8px !important;

    box-shadow: none !important;      /* kill theme's soft panel box-shadow */
    outline: none !important;

    min-height: 44px !important;
    line-height: 1.3 !important;
    padding: .6rem .7rem !important;
    font-size: .9rem !important;
    color: #000 !important;
}

/* Make sure when user clicks it, the focus style matches all other fields */
#ecodeco-service-form-wrap input[name="customer_phone"]:focus {
    border-color: #0070c9 !important;
    box-shadow: 0 0 0 3px rgba(0,112,201,0.2) !important;
    background-color: #fff !important;
}

/* Placeholder color inside the phone field */
#ecodeco-service-form-wrap input[name="customer_phone"]::placeholder,
#ecodeco-service-form-wrap input[name="customer_phone"]::-webkit-input-placeholder,
#ecodeco-service-form-wrap input[name="customer_phone"]::-moz-placeholder,
#ecodeco-service-form-wrap input[name="customer_phone"]:-ms-input-placeholder,
#ecodeco-service-form-wrap input[name="customer_phone"]:-moz-placeholder {
    color: #6b6f75 !important;
    opacity: 1 !important;
}

/* ======================================================
   Scoped final override for SERIAL NUMBER field styling
   ====================================================== */

#ecodeco-warranty-checker input#ecodeco-serial {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #ffffff !important;
    border: 1px solid #4a4f57 !important;
    border-radius: 8px !important;

    box-shadow: none !important;
    outline: none !important;

    min-height: 44px !important;
    line-height: 1.3 !important;
    padding: .8rem .9rem !important;
    font-size: 1rem !important;
    color: #000 !important;
    width: 100% !important;
}

/* Focus style to match the rest of the UI */
#ecodeco-warranty-checker input#ecodeco-serial:focus {
    border-color: #0070c9 !important;
    box-shadow: 0 0 0 3px rgba(0,112,201,0.2) !important;
    background-color: #fff !important;
    color: #000 !important;
}

/* Placeholder color for serial number */
#ecodeco-warranty-checker input#ecodeco-serial::placeholder,
#ecodeco-warranty-checker input#ecodeco-serial::-webkit-input-placeholder,
#ecodeco-warranty-checker input#ecodeco-serial::-moz-placeholder,
#ecodeco-warranty-checker input#ecodeco-serial:-ms-input-placeholder,
#ecodeco-warranty-checker input#ecodeco-serial:-moz-placeholder {
    color: #4a4f57 !important;
    opacity: 1 !important;
}

/* ======================================================
   Email input styling fix
   ====================================================== */
#ecodeco-service-form-wrap input[name="customer_email"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #ffffff !important;
    border: 1px solid #4a4f57 !important;
    border-radius: 8px !important;

    box-shadow: none !important;
    outline: none !important;

    min-height: 44px !important;
    line-height: 1.3 !important;
    padding: .6rem .7rem !important;
    font-size: .9rem !important;
    color: #000 !important;
    width: 100% !important;
}

#ecodeco-service-form-wrap input[name="customer_email"]:focus {
    border-color: #0070c9 !important;
    box-shadow: 0 0 0 3px rgba(0,112,201,0.2) !important;
    background-color: #fff !important;
}

#ecodeco-service-form-wrap input[name="customer_email"]::placeholder {
    color: #6b6f75 !important;
    opacity: 1 !important;
}

