/* Apply box-sizing globally for consistency */
*, *::before, *::after {
  box-sizing: border-box;
}

.jotform-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Thead inside jotform only */
.jotform-wrapper .tborder .thead {
  color: #ffffff !important;
  background: url(https://www.Legacycabinetsllc.com/LegacySupport/images/thead_bg.gif) repeat-x center center !important;
  font-size: 14px !important;
  font-weight: bold;
  padding: 1px;
}

/* Optional: Apply rounded corners to table if needed */
.jotform-wrapper .tborder {
  border-radius: 8px;
  overflow: hidden;
}

/* Label styling */
.jotform-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

/* trow1 styling within the form */
.jotform-form .trow1 {
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  padding: 16px;
  vertical-align: top;
}

/* Text inputs, textarea, select */
.jotform-form input[type="text"],
.jotform-form textarea,
.jotform-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Submit button */
.jotform-form input[type="submit"] {
  display: block;
  margin: 30px auto 30px auto;  /* Adds 30px space below */
  background: #1a73e8;
  color: #fff;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.jotform-form input[type="submit"]:hover {
  background: #155ab6;
}



/* Custom Select Style */
.jotform-style-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 38px 8px 12px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  width: 100%;
  max-width: 250px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-image: url(https://www.legacycabinetsllc.com/LegacySupport/images/download.svg) !important; 
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px 24px;
}

.jotform-style-select:hover,
.jotform-form select:hover {
  border-color: #888;
}

.jotform-style-select:focus,
.jotform-form select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Text Input */
.jotform-style-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Textarea */
.jotform-style-textarea {
  width: 100%;
  height: 120px;
  padding: 10px 12px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Checkbox Styling */
.jotform-form input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin-right: 8px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.jotform-form input[type="checkbox"]:checked {
  background-color: #1a73e8;
  border-color: #1a73e8;
}

.jotform-form input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.jotform-form label.checkbox-label {
  font-size: 16px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

/* Shared focus styles */
.jotform-style-input:focus,
.jotform-style-textarea:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}