
@import (optional) url('../variables/form-wrapper.variant.less');
@import (optional) url('../variables/form-controls.variant.less');

.app-form {
    background-color: var(--wm-form-background);
    padding: var(--wm-form-padding);
    border-radius: var(--wm-form-border-radius);
    border-width: var(--wm-form-border-width);
    border-style: var(--wm-form-border-style);
    border-color: var(--wm-form-border-color);
}


.app-form-header {
    padding-top: var(--wm-form-header-padding-vertical);
    padding-bottom: var(--wm-form-header-padding-vertical);
    padding-left: var(--wm-form-header-padding-horizontal);
    padding-right: var(--wm-form-header-padding-horizontal);
    border-radius: var(--wm-form-header-border-radius);
    border-color: var(--wm-form-header-border-color);
    border-style: var(--wm-form-header-border-style);
    border-width: var(--wm-form-header-border-width);
    background-color: var(--wm-form-header-background);
    border-bottom-width: var(--wm-form-header-border-width);
}

.app-form-title {
    color: var(--wm-form-header-title-color);
    font-size: var(--wm-form-header-title-font-size);
    font-weight: var(--wm-form-header-title-font-weight);
    font-family: var(--wm-form-header-title-font-family);
    margin-top: var(--wm-form-header-title-margin-vertical);
    margin-bottom: var(--wm-form-header-title-margin-vertical);
    margin-left: var(--wm-form-header-title-margin-horizontal);
    margin-right: var(--wm-form-header-title-margin-horizontal);
}

.app-form-sub-title {
    color: var(--wm-form-header-sub-title-color);
    font-size: var(--wm-form-header-sub-title-font-size);
    font-weight: var(--wm-form-header-sub-title-font-weight);
    font-family: var(--wm-form-header-sub-title-font-family);
    margin-top: var(--wm-form-header-sub-title-margin-vertical);
    margin-bottom: var(--wm-form-header-sub-title-margin-vertical);
    margin-left: var(--wm-form-header-sub-title-margin-horizontal);
    margin-right: var(--wm-form-header-sub-title-margin-horizontal);
}


.app-form-body{
    padding-left: var(--wm-form-body-padding-horizontal);
    padding-right: var(--wm-form-body-padding-horizontal);
    padding-top: var(--wm-form-body-padding-vertical);
    padding-bottom: var(--wm-form-body-padding-vertical);
    border-width: var(--wm-form-body-border-width);
    border-color: var(--wm-form-body-border-color);
    border-radius: var(--wm-form-body-border-radius);
    background-color: var(--wm-form-body-background);
    border-style: var(--wm-form-body-border-style);
}

.app-form-field {
    min-height: var(--wm-form-field-height);  // hardcoded example
    // min-height: ~"calc(var(--wm-form-controls-min-height) + var(--wm-form-error-font-size) + var(--wm-form-error-padding-vertical) + 10px)";

    margin-left: var(--wm-form-field-margin-horizontal);
    margin-right: var(--wm-form-field-margin-horizontal);
    margin-top: var(--wm-form-field-margin-vertical);
    margin-bottom: var(--wm-form-field-margin-vertical);
    padding-left: var(--wm-form-field-padding-horizontal);
    padding-right: var(--wm-form-field-padding-horizontal);
    padding-top: var(--wm-form-field-padding-vertical);
    padding-bottom: var(--wm-form-field-padding-vertical);
}

.form-label.app-label-text {
    color: var(--wm-form-controls-label-color);
    font-size: var(--wm-form-controls-label-font-size);
    font-weight: var(--wm-form-controls-label-font-weight);
    font-family: var(--wm-form-controls-label-font-family);
}

.form-label{
    background-color: var(--wm-form-controls-label-background);
    margin-top: var(--wm-form-controls-label-margin-vertical);
    margin-bottom: var(--wm-form-controls-label-margin-vertical);
    margin-left: var(--wm-form-controls-label-margin-horizontal);
    margin-right: var(--wm-form-controls-label-margin-horizontal);
}

.app-text-place-holder-text{
    color: var(--wm-form-controls-placeholder-color);
}
.app-textarea-placeholder{
    color: var(--wm-form-controls-placeholder-color);
}
.app-number-placeholer{
    color: var(--wm-form-controls-placeholder-color);
}

.app-date-place-holder-text{
    color: var(--wm-form-controls-placeholder-color);
}

.app-datetime-place-holder-text{
    color: var(--wm-form-controls-placeholder-color);
}

.app-time-place-holder-text{
    color: var(--wm-form-controls-placeholder-color);
}

.app-currency-placeholder {
    color: var(--wm-form-controls-placeholder-color);
}

.app-select-placeholderText{
    color: var(--wm-form-controls-placeholder-color);
}

.control-label .app-label-text{
  color: var(--wm-form-controls-label-color);
  background-color: var(--wm-form-controls-label-background);
  font-size: var(--wm-form-controls-label-font-size);
  font-weight: var(--wm-form-controls-label-font-weight);
  font-family: var(--wm-form-controls-label-font-family);
  margin-top: var(--wm-form-controls-label-margin-vertical);
  margin-bottom: var(--wm-form-controls-label-margin-vertical);
  margin-left: var(--wm-form-controls-label-margin-horizontal);
  margin-right: var(--wm-form-controls-label-margin-horizontal);
}
.app-form-field-error-msg {
    color: var(--wm-form-error-color);
    font-size: var(--wm-form-error-font-size);
    padding-top: var(--wm-form-error-padding-top);
    padding-bottom: var(--wm-form-error-padding-bottom);
    padding-left: var(--wm-form-error-padding-left);
    padding-right: var(--wm-form-error-padding-right);
}

.app-input {
    min-height: var(--wm-form-controls-min-height);
    padding: var(--wm-form-controls-padding);
    border-style: var(--wm-form-controls-border-style);
    border-width: var(--wm-form-controls-border-width);
    border-color: var(--wm-form-controls-border-color);
    border-radius: var(--wm-form-controls-border-radius);
    background-color: var(--wm-form-controls-background);
    color: var(--wm-form-controls-color);
    opacity: var(--wm-form-controls-opacity);
    min-width: var(--wm-form-controls-min-width);
    font-size: var(--wm-form-controls-font-size);
    font-family: var(--wm-form-controls-font-family);
    font-weight: var(--wm-form-controls-font-weight);
}

.app-input-text{
    color: var(--wm-form-controls-color);
    font-size: var(--wm-form-controls-font-size);
    font-family: var(--wm-form-controls-font-family);
    font-weight: var(--wm-form-controls-font-weight);
}

.app-input-focused {
    border-width: var(--wm-form-controls-border-width);
    border-color: var(--wm-form-controls-border-color);
    background-color: var(--wm-form-controls-background);
    // color: var(--wm-form-controls-color);
    opacity: var(--wm-form-controls-opacity);
}

.app-input-focused {
    min-height: var(--wm-form-controls-min-height);
    padding: var(--wm-form-controls-padding);
    border-style: var(--wm-form-controls-border-style);
    border-width: var(--wm-form-controls-border-width);
    border-color: var(--wm-form-controls-border-color);
    border-radius: var(--wm-form-controls-border-radius);
    background-color: var(--wm-form-controls-background);
    color: var(--wm-form-controls-color);
    opacity: var(--wm-form-controls-opacity);
    // font-size: var(--wm-form-controls-font-size);
    font-family: var(--wm-form-controls-font-family);
    font-weight: var(--wm-form-controls-font-weight);
    min-width: var(--wm-form-controls-min-width);
}

.app-input-disabled {
    min-height: var(--wm-form-controls-min-height);
    padding: var(--wm-form-controls-padding);
    border-style: var(--wm-form-controls-border-style);
    border-width: var(--wm-form-controls-border-width);
    border-color: var(--wm-form-controls-border-color);
    border-radius: var(--wm-form-controls-border-radius);
    background-color: var(--wm-form-controls-background);
    color: var(--wm-form-controls-color);
    opacity: var(--wm-form-controls-opacity);
    font-size: var(--wm-form-controls-font-size);
    font-family: var(--wm-form-controls-font-family);
    font-weight: var(--wm-form-controls-font-weight);
    min-width: var(--wm-form-controls-min-width);
    border-top-color: var(--wm-form-controls-border-color);
    border-left-color: var(--wm-form-controls-border-color);
    border-bottom-color: var(--wm-form-controls-border-color);
    border-right-color: var(--wm-form-controls-border-color);
}

.app-select-disabled{
    min-height: var(--wm-form-controls-min-height);
    padding: var(--wm-form-controls-padding);
    border-style: var(--wm-form-controls-border-style);
    border-width: var(--wm-form-controls-border-width);
    border-color: var(--wm-form-controls-border-color);
    background-color: var(--wm-form-controls-background);
    color: var(--wm-form-controls-color);
    opacity: var(--wm-form-controls-opacity);
    font-size: var(--wm-form-controls-font-size);
    font-family: var(--wm-form-controls-font-family);
    font-weight: var(--wm-form-controls-font-weight);
    min-width: var(--wm-form-controls-min-width);
}

.app-input.floatingLabel {
    // color: red;
    // background-color: #FFFFFF;
    // padding: 4px;
}
.app-input.activeFloatingLabel {
    // color: green;
}
.app-text-with-label .app-text-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
.app-text-with-label .app-text-active-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);

}
.app-number-with-label .app-text-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);

}
.app-number-with-label .app-text-active-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
.app-currency-with-label .app-text-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
.app-currency-with-label .app-text-active-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
.app-textarea-with-label .app-text-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);

}
.app-textarea-with-label .app-text-active-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
.app-date-with-label .app-text-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);

}
.app-date-with-label .app-text-active-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
.app-time-with-label .app-text-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);

}
.app-time-with-label .app-text-active-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
.app-datetime-with-label .app-text-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);

}
.app-datetime-with-label .app-text-active-flotaing-label {
    padding: var(--wm-form-controls-floating-padding);
    left: var(--wm-form-controls-floating-left);
    top: var(--wm-form-controls-floating-top);
    color: var(--wm-form-controls-floating-color);
    font-size: var(--wm-form-controls-floating-font-size);
    font-family: var(--wm-form-controls-floating-font-family);
    font-weight: var(--wm-form-controls-floating-font-weight);
}
//date, time, datetime floating label class is .app-text-with-label .app-text-flotaing-label
//no floating label for select and select locale

.app-form-footer{
    padding-left: var(--wm-form-footer-padding-horizontal);
    padding-right: var(--wm-form-footer-padding-horizontal);
    padding-top: var(--wm-form-footer-padding-vertical);
    padding-bottom: var(--wm-form-footer-padding-vertical);
    border-width: var(--wm-form-footer-border-width);
    border-color: var(--wm-form-footer-border-color);
    border-radius: var(--wm-form-footer-border-radius);
    background-color: var(--wm-form-footer-background);
    border-style: var(--wm-form-footer-border-style);
    border-top-width: var(--wm-form-footer-border-width);
}

.app-form-header{
    border-style: var(--wm-form-header-border-style);
    background-color: var(--wm-form-header-background);
    border-width: var(--wm-form-header-border-width);
    border-radius: var(--wm-form-header-border-radius);
    border-color: var(--wm-form-header-border-color);
    padding-left: var(--wm-form-header-padding-horizontal);
    padding-right: var(--wm-form-header-padding-horizontal);
    padding-top: var(--wm-form-header-padding-vertical);
    padding-bottom: var(--wm-form-header-padding-vertical);
}

.app-currency{
    border-width: var(--wm-space-0);
}
