/* Material-UI Outlined Input Styles */
.form-group-outlined {
    position: relative;
    margin-top: 0;
}

/* Input field styling - Empty & Unfocused State */
.form-group-outlined>.form-control {
    padding: 14px 24px;
    padding-left: 50px;
    line-height: 1.5;
    border: 1px solid rgba(33, 33, 33, 0.70);
    border-radius: 100px;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    font-size: 16px;
    width: 100%;
}

/* Input - Focused or Has Value: Remove left padding for icon */
.form-group-outlined:focus-within>.form-control,
.form-group-outlined.has-value>.form-control {
    padding-left: 24px;
    padding-top: 20px;
    padding-bottom: 8px;
}

/* Input focus state */
.form-group-outlined>.form-control:focus {
    border-color: #33CCFF;
    border-width: 1px;
    outline: none;
    box-shadow: none;
}

/* Label - Initial state (centered inside input, only visible when empty) */
.form-group-outlined>label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(33, 33, 33, 0.6);
    background-color: transparent;
    padding: 0;
    z-index: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}

/* Label - Floated state (notch style) when focused or has value */
.form-group-outlined:focus-within>label,
.form-group-outlined.has-value>label {
    top: 0 !important;
    left: 24px !important;
    transform: translateY(-50%) scale(0.9) !important;
    background-color: #fff !important;
    padding: 0 4px !important;
    font-size: 14px !important;
    z-index: 10 !important;
}

/* Label color on focus */
.form-group-outlined:focus-within>label {
    color: #33CCFF;
}

/* Label color when has value but not focused */
.form-group-outlined.has-value:not(:focus-within)>label {
    color: #212121;
}

/* Icon positioning - Always visible initially */
.form-group-outlined .input-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: rgba(0, 0, 0, 0.54);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    height: 18px;
}

/* Icon - Hide completely when focused or has value */
.form-group-outlined:focus-within .input-icon,
.form-group-outlined.has-value .input-icon {
    opacity: 0;
    visibility: hidden;
}

/* Hide placeholder */
.form-group-outlined>.form-control::placeholder {
    color: transparent;
    opacity: 0;
}

/* Exclude captcha from Material-UI styling */
.form-group-outlined input:not(.form-control) {
    padding: initial;
    border: initial;
    background: initial;
    font-size: initial;
}