:root {
    interpolate-size: allow-keywords;
}

.config_form * {
    padding: 0;
    margin: 0;
}

.config_form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
}

.file_upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file_input {
    padding: 8vw 16px;
    border: 2px dashed rgba(152, 152, 152, .5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
    margin-bottom: 6px;
}

.file_input p {
    opacity: .5;
    max-width: 416px;
    text-align: center;
}

.file_input input {
    opacity: 0;
    position: absolute;
    z-index: 2;
    inset: 0;
    cursor: pointer;
}

.input_fields span:empty{
    display: none;
} 
div.custom-selector {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #242323;
    border: 1px solid #FF8F00;
    border-radius: 10px;
    user-select: none;
}

.custom-selector .options {
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease;
}

.custom-selector .sub-options {
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease;
}

.custom-selector .options.show {
    max-height: max-content;
    margin-top: 10px;
}

.custom-selector .sub-options.show {
    max-height: max-content;
}

.custom-selector .selected_item_name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.custom-selector .selected {
    --icon-size: 18px;
    --gap: 10px;
    padding-right: calc(var(--icon-size) + var(--gap));
    display: flex;
    gap: var(--gap);
    cursor: pointer;
    flex-wrap: wrap;
    position: relative;
}

.custom-selector .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    letter-spacing: 1px;
}

.custom-selector .option {
    --icon-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 0;
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    transition: all .3s ease;
    position: relative;
}

.selected_item_color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #fff;
}

.sub-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.6);
}

.sub-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.field_wrapper {
    width: 48%; /* or 100% for full-width */
  }

.input_fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.input_fields input {
    background: transparent;
    border: 1px solid #656565;
    border-radius: 8px;
    padding: 13px 24px;
    color: #fff !important;
    
}

.error-msg {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
  }
#form-message {
    margin-top: 10px;
    font-size: 16px;
    color: green;
}
.telephone_input{
    appearance: none;    
}

.input_fields input::placeholder {
    color: #fff;
}

/* .input_fields .w_50 {
    width: calc(50% - 10px);
} */

.submit_btn button {
    background: #FF8F00;
    color: #fff;
    border: 1px solid #FF8F00;
    border-radius: 5px;
    font-weight: 500;
    padding: 13px 24px;   
}

.submit_btn button:hover {
    background: transparent;
    color: #FF8F00;
    border: 1px solid #FF8F00;
}

.others_field {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info_table th {
    text-align: left;
}

.info_table th {
    background: #242323;
    font-weight: 500;
}

.info_table td {
    background: transparent !important;
}

.info_table th,
.info_table td {
    padding: 13px 24px;
}

table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #656565;
}

.table_wrapper {
    border-radius: 8px;
    border: 1px solid #656565;
}

.selected::after,
.options:has(.sub-option) .option::after {
    content: '';
    width: var(--icon-size);
    height: var(--icon-size);
    background-image: url(https://www.3dml.de/wp-content/uploads/2025/04/plus_icon.svg);
    background-size: cover;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.option.active::after,
.custom-selector:has(.options.show) .selected::after {
    background-image: url(https://www.3dml.de/wp-content/uploads/2025/04/minus_icon.svg) !important;
}

.single_selector .option {
    border: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.6);
}

.single_selector .option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width:991px) {
    .config_form {
        gap: 32px;
    }

    .submit_btn button {
        margin-top: 0;
    }

    .config_form {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width:575px) {
    .input_fields .w_50 {
        width: 100%;
    }

    .info_table th,
    .info_table td {
        padding: 8px 12px;
    }

    .upload_icon {
        width: 50px;
    }

    .others_field {
        gap: 16px;
    }

    .input_fields {
        gap: 12px;
    }

    .input_fields input {
        border-radius: 6px;
        padding: 12px 14px;
    }

    div.custom_selector {
        gap: 8px;
        padding: 16px;
        border-radius: 6px;
    }
}