/**
 * search.css - Original search form and results styling
 * Restored original three-column layout and form elements
 */

/* ==========================================================================
   SEARCH FORM STYLING (Original rhcp.css style)
   ========================================================================== */

/* ==========================================================================
   FORCE THREE COLUMN LAYOUT - Add this to the TOP of search.css
   ========================================================================== */

/* Force the container to allow floats */
#plaintext {
  overflow: hidden; /* This creates a new block formatting context */
  width: 100%;
  padding: 20px;
  color: #000;
  text-align: left;
  display: block;
  line-height: 160%;
}

/* Force the three columns with !important */
/* Fix column widths to match original */
#search1 {
  display: block !important;
  float: left !important;
  width: 25% !important;
  padding: 5px 0 5px 0 !important;
  margin-right: 2% !important;
  box-sizing: border-box !important;
}

#search2 {
  display: block !important;
  float: left !important;
  width: 25% !important;
  padding: 5px 0 5px 0 !important;
  margin-right: 2% !important;
  box-sizing: border-box !important;
}

#search3 {
  display: block !important;
  float: left !important;
  width: 44% !important; /* Much wider for the buttons and dropdown */
  padding: 5px 0 5px 0 !important;
  box-sizing: border-box !important;
}

/* Make the song dropdown wider */
#search3 select.main,
#search3 .styled {
  width: 100% !important;
  max-width: 300px !important;
}

/* Clear floats after each section */
.some-related-articles::after {
  content: "";
  display: table;
  clear: both;
}

/* Force form elements to size correctly */
#search1 select, #search1 input,
#search2 select, #search2 input,
#search3 select, #search3 input {
  width: 100% !important;
  max-width: 200px !important;
  box-sizing: border-box !important;
}

/* Force styled dropdowns */
#search1 .styled, #search2 .styled, #search3 .styled {
  width: 100% !important;
  max-width: 200px !important;
}






#mobile {
  display: none;
}

#plaintext {
  padding: 20px;
  color: #000;
  text-align: left;
  display: block;
  line-height: 160%;
  width: 100%;
}

.smalltext {
  font-size: 14px;
  color: #666;
}

#search1 {
  display: block;
  float: left;
  width: 30%;
  padding: 5px 0 5px 0;
}

#search2 {
  display: block;
  float: left;
  width: 30%;
  padding: 5px 0 5px 0;
}

#search3 {
  display: block;
  float: left;
  width: 30%;
  padding: 5px 0 5px 0;
}

/* Results display styling */
#discsongs {
  display: block;
  float: left;
  width: 46%;
  border-bottom: 1px solid #D3D3D3;
  padding: 5px 0 5px 0;
}

#disctimes {
  display: block;
  float: left;
  width: 14%;
  text-align: center;
  border-bottom: 1px solid #D3D3D3;
  padding: 5px 0 5px 0;
}

#discdates {
  display: block;
  float: left;
  width: 20%;
  text-align: right;
  border-bottom: 1px solid #D3D3D3;
  padding: 5px 0 5px 0;
}

#dates {
  display: block;
  float: left;
  width: 20%;
  border-bottom: 1px solid #D3D3D3;
  padding: 5px 0 5px 0;
}

#venue {
  display: block;
  float: left;
  width: 40%;
  text-align: center;
  border-bottom: 1px solid #D3D3D3;
  padding: 5px 0 5px 0;
}

#city {
  display: block;
  float: left;
  width: 22%;
  text-align: center;
  border-bottom: 1px solid #D3D3D3;
  padding: 5px 0 5px 0;
}

#state {
  display: block;
  float: left;
  width: 16%;
  text-align: center;
  border-bottom: 1px solid #D3D3D3;
  padding: 5px 0 5px 0;
}

/* ==========================================================================
   FORM STYLING (Original formstyle.css)
   ========================================================================== */
input, select, textarea {
  margin: 0;
  padding: 0;
  font-size: 0.85em;
  outline: none;
  font-family: inherit;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

input[type="text"], input[type="password"], textarea, select, div.styled, input[type="file"] {
  width: 15em;
  border-radius: 2px;
  border: solid 1px #ccc;
  padding: 0.4em;
}

div.styled, select, input[type="file"]:after {
  background: white url(../images/formelements-select.png) no-repeat center right;
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type="text"], input[type="password"], textarea, input[type="file"] {
  background-color: #f5f5f5;
  -webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
}

.ie9 input[type="text"] {
  line-height: normal;
}

textarea {
  width: 100%;
  height: 10em;
}

/* Select menu styling */
div.styled {
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.ie7 div.styled {
  border: none;
}

div.styled select {
  width: 115%;
  background-color: transparent;
  background-image: none;
  -webkit-appearance: none;
  border: none;
  box-shadow: none;
}

.ie7 div.styled select {
  width: 100%;
  background-color: #fff;
  border: solid 1px #ccc;
  padding: 0.3em 0.5em;
}

/* Checkbox and radio styling */
input[type="radio"], input[type="checkbox"] {
  position: absolute;
  left: -999em;
}

label:before {
  display: inline-block;
  position: relative;
  top: 0.25em;
  left: -2px;
  content: '';
  width: 25px;
  height: 25px;
  background-image: url(../images/formelements.png);
}

input[type="checkbox"] + label:before {
  background-position: 0 -25px;
}

input[type="checkbox"]:checked + label:before {
  background-position: 0 0;
}

input[type="radio"] + label:before {
  background-position: -25px -25px;
}

input[type="radio"]:checked + label:before {
  background-position: -25px 0;
}

.ie8 label:before {
  display: none;
  content: none;
}

.ie8 input[type="checkbox"], .ie8 input[type="radio"], .ie7 input[type="checkbox"], .ie7 input[type="radio"] {
  position: static;
  left: 0;
}

.ie8 input[type="checkbox"], .ie8 input[type="radio"] {
  position: relative;
  top: 5px;
  margin-right: 0.5em;
}

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

/* Button styling */
input[type=button], input[type=submit], input[type=reset] {
  background-color: #ac2b1a;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 16px 32px;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
}

/* Fix button class styling */
.main {
  font-family: inherit;
}

input.main[type=button], input.main[type=submit], input.main[type=reset] {
  background-color: #ac2b1a !important;
  border: none !important;
  border-radius: 4px !important;
  color: white !important;
  padding: 16px 32px !important;
  font-size: 18px !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  margin: 4px 2px !important;
  cursor: pointer !important;
}

/* Fix button layout - force side by side */
#search3 form {
  text-align: left;
}

#search3 input[type="submit"],
#search3 input[type="reset"] {
  display: inline !important;
  width: auto !important;
  margin-right: 5px !important;
  float: none !important;
}

/* Override any width constraints on buttons in search3 */
#search3 input.main[type="submit"],
#search3 input.main[type="reset"] {
  width: auto !important;
  display: inline !important;
}

input::placeholder {
  color: #999;
}

/* Fix dropdown styling */
select.main {
  width: 15em;
  border-radius: 2px;
  border: solid 1px #ccc;
  padding: 0.4em;
  background-color: #f5f5f5;
  font-family: inherit;
}

/* Fix text input styling */
input.main[type="text"] {
  width: 15em;
  border-radius: 2px;
  border: solid 1px #ccc;
  padding: 0.4em;
  background-color: #f5f5f5;
  -webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media only screen and (max-device-width: 800px) and (-webkit-min-device-pixel-ratio: 1) { 
  #discsongs, #disctimes, #discdates, #dates, #venue, #city, #state, #search1, #search2, #search3 {
    float: none;
    width: 100% !important;
    text-align: left;
  }
  
  #mobile {
    display: block;
  }
  
  #desktop {
    display: none;
  }
}

@media only screen and (max-width: 800px) {
  #discsongs, #disctimes, #discdates, #dates, #venue, #city, #state, #search1, #search2, #search3 {
    float: none;
    width: 100% !important;
    text-align: left;
  }
  
  #mobile {
    display: block;
  }
  
  #desktop {
    display: none;
  }
}

@media only screen and (max-width: 400px) {
  input[type="text"], textarea, select, div.styled {
    width: 100%;
  }
}