/* Text Field */
.hwfield-input-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hwfield-input-field label {
    line-height: 140%;
}

.required-symbol {
    color: #666;
}

.hwfield-input-field input {
    color: var(--main-text-color);
    border-width: 1px;
    border-color: var(--border-color);
    border-style: solid;
    height: 3rem;
    padding: 1rem 1rem 0.75rem 1rem;
    background: transparent;
}

/* Text Field */



/* Textarea Field */
.hwfield-textarea-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hwfield-textarea-field label {
    line-height: 140%;
}

.hwfield-textarea-field textarea {
    font-family: 'Inter';
    color: var(--main-text-color);
    padding: 1rem 1rem 0.75rem 1rem;
    height: 6.9375rem;
    border-width: 1px;
    border-color: var(--border-color);
    background: transparent;
}

.hwfield-textarea-field textarea div {
    font-size: 0.875rem;
}

/* End Textarea Field */



/* checkbox */
.hwfield-checkbox-field {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hwfield-checkbox-field-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hwfield-checkbox-field-label-head {
    /* font-family: var(--font-family-headline); */
    font-size: 1.125rem;
    line-height: 100%;
}

.hwfield-form-ai-solutions .hwfield-checkbox-field-label-head {
    font-size: 1.5rem;
}

.hwfield-checkbox-field-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 140%;
}

.hwfield-checkbox-option-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.hwfield-checkbox-option-item>input {
    margin-top: 0.19rem;
}

.hwfield-checkbox-option-label {
    display: flex;
    flex-direction: column;
    line-height: 140%;
}

.hwfield-checkbox-option-label .option-note {
    font-size: 0.75rem;
    color: #666;
}

.hwfield-checkbox-option-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: var(--main-background); 
    
    display: grid;
    place-content: center;
    
    margin: 0;
    margin-top: 0.19rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hwfield-checkbox-option-item input[type="checkbox"]::before {
    content: "";
    width: 0.65rem;
    height: 0.35rem; 
    
    border-left: 2px solid var(--fields-color);
    border-bottom: 2px solid var(--fields-color);
    
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease-in-out;
    
    margin-top: -3px; 
    margin-left: 1px;
}

.hwfield-checkbox-option-item input[type="checkbox"]:checked {
    border-color: var(--border-color);
}

.hwfield-checkbox-option-item input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.hwfield-checkbox-option-item input[type="checkbox"]:disabled {
    background-color: #f5f5f5;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
/* checkbox */



/* Radio */
.hwfield-radio-field {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hwfield-radio-field-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hwfield-radio-field-options {
    display: flex;
    flex-direction: column;
}

.hwfield-radio-option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.hwfield-radio-option-label {
    display: flex;
    flex-direction: column;
    line-height: 140%;
}

.hwfield-radio-option-label .option-note {
    font-size: 0.75rem;
    color: #666;
}

.hwfield-radio-field-label-head {
    /* font-family: var(--font-family-headline); */
    font-size: 1.125rem;
    line-height: 100%;
}

.hwfield-radio-field-description {
    color: #666;
    font-size: 0.875rem;
}


.hwfield-radio-option-item input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    
    width: 1rem;
    height: 1rem;
    
    border: 1px solid var(--border-color); 
    border-radius: 50%;
    background-color: var(--main-background); 
    
    display: grid;
    place-content: center;
    
    margin: 0;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.hwfield-radio-option-item input[type="radio"]::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    
    background: var(--fields-color); 
    
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
}

.hwfield-radio-option-item input[type="radio"]:checked {
    border-color: var(--border-color); 
}

.hwfield-radio-option-item input[type="radio"]:checked::before {
    transform: scale(1);
}

.hwfield-radio-option-item input[type="radio"]:disabled {
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}


/* Radio */


/* Select Field */
.hwfield-select-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hwfield-select-field label {
    line-height: 140%;
}

.hwfield-select-field .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hwfield-select-field select {
    font-family: inherit;
    font-size: inherit;
    color: var(--main-text-color);
    border-width: 1px;
    border-color: var(--border-color);
    border-style: solid;
    height: 3rem;
    padding: 0 2.5rem 0 1rem;
    background: transparent;
    width: 100%;
    cursor: pointer;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.hwfield-select-field select:invalid,
.hwfield-select-field select option[value=""] {
    color: #999;
}

.hwfield-select-field select option {
    background-color: var(--main-background);
    color: var(--main-text-color);
    padding: 10px;
}

.hwfield-select-field select:focus {
    outline: none;
    border-color: #000;
}

/* Select Field */


.field-error-message {
    color: #e53935;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.form-error {
    color: #e53935;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.field-error input {
    border-color: #e53935;
}