.input-container {
    position: relative;
    max-width: 500px;
    margin-bottom: 16px;
}

.custom-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--grey-600);
    border-radius: 6px;
    transition: border-color 0.3s;
    font-weight: 550;
}

.placeholder-label {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--grey-600);
    transition: all 0.3s;
    background-color: white;
    padding: 0 5px;
    pointer-events: none;
}

.custom-input:focus + .placeholder-label,
.custom-input:not(:placeholder-shown) + .placeholder-label,
.custom-textinput:focus + .placeholder-label,
.custom-textinput:not(:placeholder-shown) + .placeholder-label,
.custom-select:focus + .placeholder-label,
.custom-select:valid + .placeholder-label {
    top: 0px;
    font-size: 12px;
    color: var(--grey-600);
}

.clear-button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
    color: var(--grey-900);
}


.custom-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--grey-600);
    border-radius: 6px;
    background: #fff;
    font-weight: 550;
}

.custom-select option {
    font-weight: 400;
}

.custom-textinput {
    
    font-weight: 550;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--grey-600);
    border-radius: 6px;

    field-sizing: content;
    max-height: 6lh; /* opcjonalny limit wysokości */
    overflow-y: auto;
    resize: none;
    min-height: 1lh; /* jedna linijka na start */
    line-height: 1.4;
}

.inputError .custom-input {
    border:2px solid var(--red);
    color:var(--red);
}
.inputError .custom-input:focus {
    border:2px solid var(--red);
    color: var(--grey-900);
}

.inputError .custom-textinput {
    border:2px solid var(--red);
    color:var(--red);
}
.inputError .custom-textinput:focus {
    border:2px solid var(--red);
    color: var(--grey-900);
}

.inputError .custom-select {
    border:2px solid var(--red);
    color:var(--red);
}
.inputError .custom-select:focus {
    border:2px solid var(--red);
    color: var(--grey-900);
}

.inputErrorCaption {
    font-size: 1.2rem;
    color: var(--red);
    margin-top: 1px;
    margin-bottom: 12px;
}

.primary_button {
    display: inline-block;
    border: none;
    border-radius: 8px;
    background: rgb(87, 118, 0);
    padding: 8px 16px;
    box-shadow: var(--box-shadow-smooth);
}

.button_yellow{
    background: rgb(205, 229, 69);
}

.inputErrorCaptionVisible {
    font-size: 1.2rem;
    color: var(--red);
    margin-top: 1px;
    margin-bottom: 12px;
}
