html {
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100%;
    background: #061d33;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

.no-js-message {
    color: white;
    position: absolute;
    width: 100%;
    padding: 50px;
    background: #000000e0;
    border-radius: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

p {
    font-weight: 600;
}

ul {
    text-align: left;
    margin-top: 20px;
    padding: 0 20px;
}

li > button {
    font-weight: 800; 
    background: none;
    border: none;
    float: right;
    color: #ffffff94;
}

.flex-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-title {
    padding: 50px 0;
    font-weight: bold;
}

.page-title h1 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    font-family: 'Adamina', 'Georgia', serif;
    letter-spacing: 5px;
    font-size: 30px;
}

.input-group {
	margin-bottom: 5px;
}
.social-share-buttons a {
  text-decoration: none;
}

.share-tool-section {
	text-align: center;
}

.share-tool-section .social-share-buttons {
    padding: 10px 20px;
    background: none;
}

.share-tool-section .social-share-buttons a {
    color: #ffffff99;
    padding: 8px;
}

.share-tool-section .social-share-buttons a i {
    border: 1px solid #ffffff21;
    padding: 10px;
    border-radius: 6px;
}


/* App styles */

.wire-size-calculator-app {
    margin-bottom: 40px;
	width: 100%;
}

.app-container {
    max-width: 500px;
    margin-right: auto;
	margin-left: auto;
    background: white;
    text-align: center;
    overflow: hidden;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



/* Form container */
#wireForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  align-items: center;
  margin-bottom: 20px;
}

/* Form groups */
#wireForm .form-group {
  display: flex;
  flex-direction: column;
}

/* Labels */
#wireForm label {
	color: #061d33;
	cursor: pointer;
	display: block;
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 10px;
	text-align: left;
}

/* Required asterisk */
#wireForm label .required {
  color: #ff6600;
  margin-left: 4px;
  font-weight: 900;
}

/* Inputs and selects */
#wireForm input[type="number"],
#wireForm select {
  padding: 12px 14px;
  font-size: 15px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  background-color: #fff;
  color: #061d33;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline-offset: 2px;
}

#wireForm select {
	appearance: none;
	background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22%3E%3Cpath fill=%22555555%22 d=%22M1 4h14l-7 7-7-7z%22/%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 30px;
}


#wireForm input[type="number"]:focus,
#wireForm select:focus {
  border-color: #ff9901;
  box-shadow: 0 0 6px 2px rgba(255, 153, 1, 0.3);
  outline: none;
}

#wireForm .form-group:nth-child(1) {
  grid-column: 1 / -1;
}


#calculateBtn {
  grid-column: 1 / -1;
  background-color: #ff9901;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 1.3px;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

#calculateBtn:hover,
#calculateBtn:focus {
  background-color: #e68a00;
  outline: none;
}

/* Result box */
.result {
  margin-top: 30px;
  padding: 20px;
  background: #fff7e6;
  border-left: 6px solid #ff9901;
  border-radius: 8px;
  color: #5a3e00;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

.result h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 20px;
  color: #cc7a00;
}

#resultOutput {
	text-align: left;
	padding-left: 5%;
}

#resultOutput i {
	margin-right: 5px;
}

.hidden {
  display: none !important;
}

/* Help box styling */
.help-box {
  margin-top: 40px;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  font-style: italic;
}

.help-box summary {
  font-weight: 600;
  color: #061d33;
  cursor: pointer;
  outline: none;
}

.help-box p {
   max-width: 400px;
}

/* Open details */
.help-box[open] {
  color: #333;
}

/* Responsive: stack inputs on small screens */
@media (max-width: 520px) {
  #wireForm {
    grid-template-columns: 1fr;
  }
  #wireForm .form-group:nth-child(1),
  #wireForm .form-group:nth-child(3),
  #calculateBtn {
    grid-column: auto;
  }
}




/* End App styles */


footer {
    padding: 15px 20px;
    color: #ffffff6e;
    font-family: sans-serif;
    text-align: center;
    font-size: 15px;
    letter-spacing: .2px;
}

footer a {
    color: #ff9901;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

footer .made-by {
    color: white;
}

footer .footer-copyright {
    font-size: 14px;
    line-height: 1.4;
    font-weight: lighter;
}
