/* -----------------------------------------------------------------------------
Engine:     Gametize
Author:     Gametize Pte Ltd
Description:  Form elements
----------------------------------------------------------------------------- */

form { position : relative }
  form .field-wrap {
    display : block;
    position : relative;
    margin : 0 0 20px;
  }

  form label { line-height : 1.5 }

  form input, form select, form textarea, form fieldset, form option, form button {
    font-family : Helvetica, Arial, sans-serif;
    font-size : 1em; /* 16px */
    line-height: 1.25; /* 20px */
  }
  form input, form select, form textarea, form fieldset, form option { color : #666 }
  form select, select { background-color : #fff }

  form input[type=text], form input[type=password],
  form textarea, form select, .formselect-wrap, .formcustomtext-wrap { width: 100%; }

  form input[type=text], form input[type=password],
  form textarea, .formselect-wrap, .formcustomtext-wrap {
    background : #fff;
    border : 1px solid #ddd;
    padding: 8px 6px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
  }

  form textarea { min-height : 65px; resize: vertical; }

    form input[type=text]:focus, form input[type=password]:focus, form textarea:focus {
      border-color : #bbb;
    }

/* Form select dropdown - cross browser hack */
.formselect-wrap { display: block }

/* Form fields bundled with counters and other random things */
.formcustomtext-wrap {}

.formcustomtext-wrap input[type=text], .formcustomtext-wrap input[type=password],
.formcustomtext-wrap textarea {
  border : none; padding: 0; margin : 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}
.formcustomtext-wrap input[type=text]:focus, .formcustomtext-wrap input[type=password]:focus,
.formcustomtext-wrap textarea:focus {
  border : 0;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* Placeholders */
::-webkit-input-placeholder { color : #bbb }          /* WebKit, Blink, Edge */
:-moz-placeholder { color : #bbb; opacity: 1 }        /* Mozilla Firefox 4 to 18 */
::-moz-placeholder { color : #bbb; opacity: 1 }       /* Mozilla Firefox 19+ */
:-ms-input-placeholder { color : #bbb }           /* Internet Explorer 10-11 */
::-ms-input-placeholder { color : #bbb }          /* Microsoft Edge */

/* Form validation */
.field-error-highlight { border-color : #D11B18 !important }  /* Overriding class */

form span.validationresult-wrap { position: absolute; top: -35px; right: 8px }

  form span.validationresult {
    position: relative; display : block; max-width : 250px; padding: 8px;
    font-size : 0.75em; /* 12px */ line-height : 1.25; /* 20px */
    color : #fff; background : #292929;
    -moz-border-radius : 4px;
    -khtml-border-radius : 4px;
    -webkit-border-radius: 4px;
    -moz-box-shadow: 0 2px 5px 2px rgba(0,0,0,0.25);
    -webkit-box-shadow:  0 2px 5px 2px rgba(0, 0, 0, 0.25);
    box-shadow:  0 2px 5px 2px rgba(0, 0, 0, 0.25);
  }

  form span.validationresult:after {
    content : ""; width: 0;
    position : absolute; bottom : -10px; right: 10px;
    border-width: 10px 6px 0 6px;
    border-color: #292929 transparent;
    border-style: solid;
  }

/* Form character count */
.field-character-count {
  font-size : 1em; /* 6em */ line-height : 1.25; /* 20px */
  font-weight : bold;
  color : #999;
  float : right;
  margin : 0;
}

input[type=text]:disabled { background: #eee; }
select:disabled { background: #eee; }
textarea:disabled { background: #eee; }
input[type=text]:read-only { background: #eee !important; }
input[type=text]:-moz-read-only { /* For Firefox */
  background: #eee !important;
}
.formselect-wrap-disabled { background: #eee; }
