/* =========================================================
   AUTO365 - FORM KIỂM TRA SƠ BỘ XE
   ========================================================= */

#vehicle-check-form {
    width: 100%;
    max-width: 780px;
    margin: 20px auto;
    padding: 24px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #e3e7ed;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}


/* Heading
--------------------------------------------------------- */

#vehicle-check-form h3 {
    margin: 0 0 20px;
    padding: 0;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
    color: #252d3a;
}


/* Grid
--------------------------------------------------------- */

#vehicle-check-form .pcn-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-bottom: 14px;
}

#vehicle-check-form .pcn-form-grid > div,
#vehicle-check-form .pcn-form-field {
    min-width: 0;
}


/* Label
--------------------------------------------------------- */

#vehicle-check-form label {
    display: block;

    margin-bottom: 6px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #3d4655;
}


/* Input / Select / Textarea
--------------------------------------------------------- */

#vehicle-check-form input[type="text"],
#vehicle-check-form input[type="tel"],
#vehicle-check-form select,
#vehicle-check-form textarea {
    display: block;

    width: 100%;
    box-sizing: border-box;

    border: 1px solid #ccd3dd;
    border-radius: 8px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#vehicle-check-form input[type="text"],
#vehicle-check-form input[type="tel"],
#vehicle-check-form select {
    height: 46px;
    padding: 0 13px;
}


#vehicle-check-form textarea {
    min-height: 90px;
    padding: 11px 13px;

    resize: vertical;
}


/* Placeholder
--------------------------------------------------------- */

#vehicle-check-form input::placeholder,
#vehicle-check-form textarea::placeholder {
    color: #9aa3b2;
    opacity: 1;
}


/* Focus
--------------------------------------------------------- */

#vehicle-check-form input:focus,
#vehicle-check-form select:focus,
#vehicle-check-form textarea:focus {
    border-color: #ff6b21;
    box-shadow: 0 0 0 3px rgba(255, 107, 33, 0.1);
}


/* Select
--------------------------------------------------------- */

#vehicle-check-form select {
    cursor: pointer;
    color: #374151;
}


/* Ghi chú
--------------------------------------------------------- */

#vehicle-check-form .pcn-form-field {
    margin-bottom: 16px;
}


/* Submit
--------------------------------------------------------- */

#vehicle-check-form .pcn-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    padding: 11px 20px;

    border: 0;
    border-radius: 8px;

    background: #e31e24;
    color: #fff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;
}


#vehicle-check-form .pcn-form-submit:hover {
    background: #df5c12;
}


#vehicle-check-form .pcn-form-submit:active {
    transform: translateY(1px);
}


#vehicle-check-form .pcn-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* Honeypot
--------------------------------------------------------- */

#vehicle-check-form .pcn-form-honey {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    #vehicle-check-form {
        margin: 16px 0;
        padding: 18px 15px;

        border-radius: 10px;
    }


    #vehicle-check-form h3 {
        margin-bottom: 17px;

        font-size: 19px;
    }


    #vehicle-check-form .pcn-form-grid {
        grid-template-columns: 1fr;

        gap: 12px;
        margin-bottom: 12px;
    }


    #vehicle-check-form input[type="text"],
    #vehicle-check-form input[type="tel"],
    #vehicle-check-form select,
    #vehicle-check-form textarea {
        /*
         * 16px tránh iPhone tự zoom khi focus.
         */
        font-size: 16px;
    }


    #vehicle-check-form textarea {
        min-height: 85px;
    }


    #vehicle-check-form .pcn-form-submit {
        min-height: 50px;
    }
}