/* ===== Page Background ===== */

.quate-request-form {
    max-width: 846px;
    margin: 80px auto;
    background: #F3F5F6;
    border-radius: 30px;
    padding: 40px 48px 50px;
    font-family: 'Roboto', sans-serif;
}

.quote-form-container h2 {
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ===== Headings ===== */
.quote-form-container h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 16px;
    color: #1D1D1D;
}

/* ===== Rows ===== */
.form-row {
    display: flex;
    margin-bottom: 20px;
}

.form-row.full-width {
    flex-direction: column;
}

/* ===== Columns Spacing (NO GAP) ===== */
.form-group {
    flex: 1;
    width: 50%;
}

.form-row.full-width .form-group {
    width: 100%;
}

.form-group:not(:last-child) {
    margin-right: 20px;
}

/* ===== Inputs ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    background: #fff;
    font-weight: 400;
    color: #1D1D1D;
    font-family: "Inter", sans-serif;
}

.wpcf7-form select {
    position: relative;
}

.wpcf7-form select {
    background: #fff url(../images/chevron-down-dark.svg) no-repeat;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-position: calc(100% - 18px) center;
    color: #1D1D1DCC;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form input[type="date"]::placeholder {
    color: #1D1D1DCC;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus {
    outline: 1px solid #1D1D1D;
}

/* Autofill background fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: #1D1D1D;
    transition: background-color 5000s ease-in-out 0s;
}

.wpcf7-not-valid-tip {
    font-size: 13px;
}

/* ===== Textarea ===== */
.wpcf7-form textarea {
    width: 100%;
    height: 130px;
    padding: 16px 20px;
    border-radius: 10px;
    border: none;
    resize: vertical;
    font-size: 14px;
    font-family: "Inter", sans-serif;
}

/* ===== Labels ===== */
.form-group label {
    margin-bottom: 6px;
    color: #1D1D1D;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    display: block;
}

/* ===== Checkbox Grid (NO GAP) ===== */
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -14px;
}

.checkbox-grid .wpcf7-list-item {
    margin-bottom: 14px;
}

.checkbox-grid .wpcf7-list-item:not(:last-child) {
    margin-right: 10px;
}

/* ===== Custom Checkbox & Radio ===== */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.2px solid #1D1D1D33;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
}

.wpcf7-form input[type="radio"] {
    border-radius: 50%;
    position: relative;
    top: 3px;
}

.wpcf7-list-item-label {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(29, 29, 29, 0.8);
    white-space: nowrap;
}

/* Checked */
.wpcf7-form input:checked {
    background: #E63946;
    border-color: #E63946;
}

.wpcf7-form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 11px;
    height: 8px;
    background: url("../images/checkbox-tick.svg") no-repeat center;
}

.wpcf7-form input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    background: #E63946;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ===== Checkbox & Radio Labels ===== */
.wpcf7-list-item {
    margin: 0;
}

.wpcf7-list-item label {
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* ===== Radio Rows (NO GAP) ===== */
.technical-details-radio-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.technical-details-radio-wrapper .radio-row {
    width: 50%;
    margin-bottom: 20px;
}

.radio-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.radio-row label:first-child {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: rgba(29, 29, 29, 0.8);
    margin-bottom: 10px;
    display: block;
}

.radio-row .wpcf7-list-item {
    margin-right: 16px;
}

/* ===== Submit Button ===== */
.submit-container {
    text-align: center;
    margin-top: 40px;
}

.wpcf7-form .wpcf7-submit {
    padding: 13px 50px 13px 27px;
    width: 219.17px;
    height: 50px;
    background-color: #E63946;
    border: 1px solid #E63946;
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    background-image: url("../images/Long_arrow_right.svg");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #1D3557;
    border: 1px solid #1D3557;
}

/* Date input base */
.wpcf7-form input[type="date"] {
    position: relative;
    background: #fff url("../images/date-picker-icon.svg") no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: 16px;
    padding-right: 48px;
    color: #1D1D1D;
}

/* Show placeholder-like text */
.wpcf7-form input[type="date"]:not(:focus):not([value]) {
    color: #9CA3AF;
}

/* Safari / Chrome fix */
.wpcf7-form input[type="date"]::-webkit-datetime-edit {
    color: transparent;
}

.wpcf7-form input[type="date"]:focus::-webkit-datetime-edit,
.wpcf7-form input[type="date"][value]::-webkit-datetime-edit {
    color: #1D1D1D;
}

/* Hide default calendar icon */
.wpcf7-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    position: absolute;
    right: 16px;
    top: 13px;
    width: 20px;
    height: 20px;
}

.wpcf7-form input[type="text"].js-date,
.wpcf7-form input[type="text"].js-time,
.wpcf7-form input[type="text"].js-datetime {
    background: #fff url('../images/date-picker-icon.svg') no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
}

.wpcf7-form input[type="text"].js-time {
    background: #fff url('../images/time-picker-icon.svg') no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
}

.custom-multiselect {
    width: 100%;
    position: relative;
}

.select-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s, box-shadow 0.3s;
    user-select: none;
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border-radius: 50px;
    background: #fff;
    max-width: 365px;
}

.custom-multiselect .select-box {
    display: inline-block;
    vertical-align: middle;
    padding-right: 40px;
}

.custom-multiselect .select-box.active {
    outline: 1px solid #000;
}

.custom-multiselect .select-box p {
    line-height: 47px;
}

.custom-multiselect .selected-text.has-value,
.custom-multiselect .selected-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.select-box::after {
    content: "";
    background: #fff url('../images/chevron-down-dark.svg') no-repeat;
    background-size: 12px;
    background-position: center;
    width: 13px;
    height: 16px;
    transform: translate(-10px, -5px);
    display: block;
    margin-top: -4px;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 50%;
    -webkit-transform-origin: 66% 66%;
    -ms-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}

.select-box.active::after {
    -webkit-transform: rotateX(180deg) translate(-10px, 10px) rotateY(0);
    -ms-transform: rotateX(180deg) translate(-10px, 10px) rotateY(0);
    transform: rotateX(180deg) translate(-10px, 10px) rotateY(0);
}

.checkboxes-wrapper {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    z-index: 1;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.checkboxes-wrapper label {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
}

.checkboxes-wrapper label:last-child {
    border-bottom: none;
}

.checkboxes-wrapper label:hover {
    background-color: #fff5f5;
    color: #e02b20;
}

.checkboxes-wrapper input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e02b20;
}

.selected-text {
    color: #757575;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.selected-text.has-value {
    color: #333;
    font-weight: 500;
}

.custom-multiselect .wpcf7-list-item {
    width: 100%;
    display: block;
}

.custom-multiselect .wpcf7-form-control {
    display: block;
    width: 100%;
    padding: 10px 0;
}

.quate-request-form select option[disabled] {
    display: none;
}

.quate-request-form select {
    cursor: pointer;
    outline: none;
}

.quate-request-form .nice-select:after {
    transform: translate(-10px, -5px);
}

.quate-request-form .nice-select.open:after {
    -webkit-transform: rotateX(180deg) translate(-10px, 10px) rotateY(0);
    -ms-transform: rotateX(180deg) translate(-10px, 10px) rotateY(0);
    transform: rotateX(180deg) translate(-10px, 10px) rotateY(0);
}

.quate-request-form .nice-select.nice-select {
    line-height: 46px;
}

.contact-form .wpcf7-spinner {
    position: relative;
    top: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .quate-request-form {
        margin: 50px auto;
    }
}

@media (max-width: 575px) {

    .form-group,
    .custom-multiselect .select-box {
        width: 100%;
        max-width: 100%;
    }

    .quote-form-container h2 {
        font-size: 24px;
        line-height: normal;
    }

    .quote-form-container h3 {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
        margin-bottom: 16px;
    }

    .form-group:not(:last-child) {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .checkbox-grid .wpcf7-list-item,
    .technical-details-radio-wrapper .radio-row {
        width: 100%;
    }

    .radio-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-row label:first-child {
        margin-bottom: 10px;
    }

    .quate-request-form {
        padding: 30px 25px 30px;
        border-radius: 12px;
    }

    .wpcf7-list-item-label {
        font-size: 14px;
    }

    .select-box {
        max-width: 100%;
    }

    .checkbox-grid .wpcf7-list-item .wpcf7-list-item-label {
        white-space: normal;
    }

    .flatpickr-calendar {
        width: 80% !important;
    }
}

@media (max-width: 380px) {
    .quote-form-container h2 {
        font-size: 23px;
    }

    .quate-request-form {
        padding: 30px 15px 10px;
    }
}