
/* -------------------------------------------
 - Common styles -----------------------------
 ------------------------------------------ */

img {
  border: none;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
  line-height: 155%;
  list-style-position: outside;
}

li {
  margin-bottom: 0.5em;
}

ul li {
  list-style-type: disc;
}

blockquote {
  margin-bottom: 1em;
  line-height: 170%;
  margin-left: 2em;
}

.section {
  margin-top: 1em;
  border-top: 0.1em solid #eee;
  padding-top: 1em;
}

div.center {
  text-align: center;
  width: 100%;
}

table.center {
  margin-left: auto;
  margin-right: auto;
}

div.center table:first-child {
  margin-left: auto;
  margin-right: auto;
}

div.center div:first-child {
	margin-left: auto;
  margin-right: auto;
}

img.center {
	display: block;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------
 - Success, error, and notification messages -
 ------------------------------------------ */

.notice, .error, .success {
  padding: 1em;
  border: 0.1em solid #999;
  -moz-border-radius: 0.4em;
  border-radius: 0.4em;
  margin-bottom: 1em;
  padding-left: 50px;
  min-height: 20px;
  line-height: 150%;
}

.notice {
  background: #ff9 url(/images/warning.png) no-repeat 0.5em 0.5em;
}

.error {
  background: #fcc url(/images/error.png) no-repeat 0.5em 0.5em;
  color: #a00;
}

.success {
  background: #efe url(/images/success.png) no-repeat 0.5em 0.5em;
}

.error li {
  margin-left: 1.2em;
}

.notice p:last-of-type, .error p:last-of-type, .success p:last-of-type {
  margin-bottom: 0;
}


/* -------------------------------------------
 - About Us, Contact Us, Privacy, etc. pages -
 --------------------------------------------- */

h1 .date, h1 .version {
  float: right;
  font-size: 65%;
  font-weight: normal;
  padding: 0 0.7em;
}

h1 .date {
  border-left: 0.1em solid #ccc;
}

table#contact-links {
  width: 100%;
  border: none;
  padding-bottom: 1em;
  border-bottom: 0.1em dotted #aaa;
  margin-bottom: 2em;
}

table#contact-links td {
  padding: 0.5em;
  white-space: nowrap;
  width: 12em;
}

table#contact-links td img {
  float: left;
}

table#contact-links td a.label {
  display: block;
  float: left;
  margin: 1em 0.2em;
  font-weight: bold;
}

.contact-icon {
  width: 53px;
  display: block;
  float: left;
}

.contact-section {
  margin-bottom: 2em;
}

.table-of-contents {
  margin: 1em 1em 1.2em;
  padding: 0.2em 0;
  font-weight: bold;
  border-top: 0.1em dotted #ccc;
  border-bottom: 0.1em dotted #ccc;
}

.table-of-contents > div {
  margin: 0.5em 0;
}

address {
  display: block;
  margin: 1.5em 0 1em 1em;
  font-size: 110%;
  font-style: normal;
  line-height: 20px;
}
address > div {
  margin: 2px 0;
}


/* -----------------------------------------
 - Forms -----------------------------------
 ---------------------------------------- */

input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
  border: 0.1em solid #C6D9E9;
  border-radius: 0.2em;
  padding: 0.3em;
}

input[type='text'], input[type='password'], input[type='email'], input[type='url'] {
  width: 17em;
}

input[type='text'].number {
  width: 3em;
}

input[type='text'].dollar-amount {
  width: 5em;
}

input[type='text'].state-or-province {
  width: 3em;
}

input[type='text'].zip-code, input.zip-code {
  width: 5em;
}

input[type='text'].zip-code-last-4, input.zip-code-last-4 {
  width: 4em;
}

input.congressional-district {
  width: 2em;
}

textarea {
  width: 75%;
  height: 8em;
  padding: 0.5em;
}

select {
  padding: 0.2em;
}

input[type="submit"] {
  padding: 0.2em 0.4em;
  min-width: 5em;
}

form div {
  padding: 0.2em 0;
}

form.new-form {
  max-width: 50em;
}

form.new-form fieldset {
  margin: 0 1em 0 1em;
  padding: 1.5em 0 0.4em 0;
  border: none;
  border-bottom: 0.1em solid #ddd;
}
form.new-form fieldset:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

form.new-form fieldset ol, ol.values {
  list-style: none;
  margin: 0;
}

/* clear-fix hack */
form.new-form fieldset ol:after, ol.values:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

form.new-form fieldset > ol > li, ol.values > li {
  list-style: none;
  margin-bottom: 1.2em;
  float: left;
  clear: left;
  width: 100%;
}

form.new-form fieldset > ol > li > label, ol.values > li > .label {
  clear: both;
  float: left;
  width: 12em;
  margin-right: 1em;
  text-align: right;
  font-weight: bold;
}

form.new-form fieldset > ol > li.textarea label {
  width: 100%;
  margin: 0 0 0.5em 0;
  text-align: left;
}

form.new-form fieldset > ol > li.checkbox input {
  float: left;
  margin: 0.2em 1em 0 3.5em;
}

form.new-form fieldset > ol > li.checkbox label {
  float: left;
  clear: none;
  width: 40em;
  text-align: left;
  font-weight: normal;
}

form.new-form fieldset > ol > li.radio-button-set label {
  float: none;
  width: 100%;
  text-align: left;
  /*font-weight: normal;*/
}

form.new-form fieldset > ol > li.radio-button-set li,
form.new-form fieldset > ol > li.checkbox-set li {
  float: left;
  clear: none;
  list-style-type: none;
  padding: 0.5em;
  margin: 0;
  width: auto;
}

form.new-form fieldset > ol > li.checkbox-set li {
  border-right: 0.1em solid #eee;
  padding-right: 0.6em;
}
form.new-form fieldset > ol > li.checkbox-set li:last-child {
  border: none;
}

label.error {
  float: left;
  width: 100%;
  margin: 0 1em 1em 1.5em;
  text-align: left;
  color: #a44;
  font-weight: bold;
}

form .submit {
  text-align: right;
  padding: 0.5em;
  /*background-color: #fffcb1;*/
  background-color: #f0fbf0; /* #efe; #cec;*/
  border: 0.1em solid #3e8d4b; /* #bdb; */
  -moz-border-radius: 0.2em;
  border-radius: 0.2em;
  margin: 1em 0 1em;
}

li.ui-menu-item {
  list-style-type: none;
}


/* -----------------------------------------
 - Specific to Toolbox Forms ---------------
 ---------------------------------------- */

form.ddc-postback label {
  font-weight: bold;
}

form.ddc-postback table td {
	padding: 0.5em 0.3em 0.3em 0.3em;
}
form.ddc-postback table td.label {
  text-align: right;
}

form.ddc-postback table td.divider {
  padding: 0;
  height: 0.5em;
  border-bottom: 0.1em dotted #bbf;
}


/* XXX: These styles are presently only used for the Candidates form, so should be placed
        somewhere more specific... */

form#candidate-application fieldset#links li {
  float: none;
}

form#candidate-application fieldset#links li label {
  float: none;
  width: auto;
  text-align: left;
  margin: 0;
}

form#candidate-application fieldset#links li input {
  margin-top: 0.8em;
  width: 45em;
}
