* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  color: #000;
}

.mod_main {
  margin-top: 132px;
}

.form-wrapper {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 100px auto;
  width: 100%;
}

.form-info {
  width: 50%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.form-info img {
  width: 300px;
  height: auto;
  box-shadow: 5px 5px 7px rgb(193 193 193);
}

.form-info h2 {
  font-size: 24px;
  text-align: center;
}

.form-info p {
  font-size: 15.2px;
  line-height: 1.5;
  color: #333;
  margin: 0px;
}

.title {
  margin: 0;
  border: none;
  font-size: 30px;
  text-align: center;
  line-height: 1.3;
}

.title span {
  font-size: 18px;
  font-weight: 500;
}

.main-info {
  width: 100%;
  background: linear-gradient(45deg, #f5f5f5 20%, #f9f9f9 45%, white 100%);
  border-radius: 3px;
  padding: 12px 15px;
}

.main-info h2 {
  text-align: left;
  color: #353535;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  font-size: 1.2em;
  border-bottom: 2px solid !important;
  border-image: linear-gradient(
    to right,
    rgb(0, 91, 172) 0%,
    rgb(94, 194, 198) 100%
  );
  border-image-slice: 100%;
  border-image-slice: 1;
  border-top: 0px;
  border-right: 0px;
}

.main-info ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  list-style: none;
  padding-left: 0;
  gap: 10px;
}

.main-info ul li {
  font-weight: 300;
  font-size: 15px;
}

.main-info-bullet {
  color: #f8753f;
  padding-right: 7px;
}

.sample {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  list-style: none;
  padding-left: 0;
}

.sample li {
  width: calc(50% - 10px);
  position: relative;
}

.sample li img {
  border: 1px solid #ccc;
  max-width: 100%;
  height: auto;
  width: auto;
  box-shadow: none;
}

.sample li span {
  display: block;
  position: absolute;
  width: 30px !important;
  height: 30px !important;
  top: auto;
  right: 0 !important;
  margin: -34px 0 0 0 !important;
}

.form-container {
  background-color: #f0f0f0;
  width: 50%;
  height: fit-content;
}

.form-container h3 {
  padding: 16px 32px 0px 32px;
}

.form-field {
  display: flex;
  width: 100%;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.form-terms {
  height: 300px;
  overflow: scroll;
  padding: 20px;
  font-size: 14px;
}

.form-terms h3 {
  border-image: linear-gradient(180deg, rgb(94, 194, 198), rgb(0, 91, 172));
  border-image-slice: 1;
  border-left: solid 3px rgb(0, 124, 197);
  padding: 0.25em 0.5em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 0px 32px;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  width: 40%;
}

form label:first-child {
  margin-top: 0px;
}

form label span {
  font-size: 0.6rem;
  color: white;
  background-color: #c00;
  border-radius: 5px;
  padding: 2px 5px 3px 5px;
}

form label:not(.no-required)::after {
  padding: 5px 6px 5px 6px;
  border-radius: 4px;
  font-size: 0.6em;
  color: white;
  background-color: #c44;
  content: "必須";
  float: right;
}

form input,
form select {
  width: 100%;
  padding: 6px 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

form p {
  margin: 0;
  font-weight: 300;
  font-size: 13px;
  text-align: center;
}

form button {
  margin-bottom: 20px;
  padding: 16px 24px;
  background: linear-gradient(
      45deg,
      #005bac 0%,
      #5ec2c6 50%,
      #5ec2c6 51%,
      #005bac 100%
    )
    0 0 / 200% auto no-repeat;
  transition: 0.4s;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

form button:hover {
  background-position: right center;
}

form button:disabled {
  /* background: linear-gradient(
      45deg,
      #4d4d4d 0%,
      #b3b3b3 50%,
      #b3b3b3 51%,
      #4d4d4d 100%
    )
    0 0 / 200% auto no-repeat;
  color: black; */
  cursor: default;
}

form button:disabled:hover {
  background-position: right center;
}

@media (max-width: 768px) {
  .mod_main {
    margin-block: 50px;
  }

  .form-wrapper {
    flex-direction: column;
    margin: 0px auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
  }

  .form-info,
  .form-container {
    width: 100%;
  }

  .form-info {
    padding: 30px 20px;
    flex-shrink: 0;
  }

  .form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .form-field {
    flex-direction: column;
  }

  form label {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
}

/* Ninja Forms Container Overrides */
.nf-form-cont {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-content: center !important;
  justify-content: center !important;
  align-items: center !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: 100%;
}

.nf-form-wrap {
  width: 100%;
}

.nf-form-layout form div {
  width: 100%;
}

/* Hide Ninja Forms loading spinner */
/* .nf-loading-spinner {
  display: none !important;
} */

/* Form Field Container */
.nf-field-container {
  display: flex !important;
  width: 100% !important;
  /* align-content: center !important; */
  justify-content: center !important;
  align-items: center !important;
  /* gap: 8px !important; */
  margin-bottom: 0 !important;
  flex-direction: column !important;
}

/* Labels */
.nf-field-label label {
  display: block !important;
  margin-top: 15px !important;
  margin-bottom: 5px !important;
  font-weight: bold !important;
  width: 100% !important;
  font-size: 16px !important;
  color: #333 !important;
}

/* First label no top margin */
.nf-field-container:first-child .nf-field-label label {
  margin-top: 0px !important;
}

/* Required field indicator */
.nf-field-label label:not(.no-required)::after {
  padding: 5px 6px 5px 6px !important;
  border-radius: 4px !important;
  font-size: 0.6em !important;
  color: white !important;
  background-color: #c44 !important;
  content: "必須" !important;
  float: right !important;
  margin-left: 10px !important;
}

/* Input Fields */
.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element select,
.nf-field-element textarea {
  width: 100% !important;
  padding: 6px 15px !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  background-color: white !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
}

/* Input Focus States */
.nf-field-element input[type="text"]:focus,
.nf-field-element input[type="email"]:focus,
.nf-field-element input[type="tel"]:focus,
.nf-field-element select:focus,
.nf-field-element textarea:focus {
  border: 1px solid #005bac !important;
  box-shadow: 0 0 3px rgba(0, 91, 172, 0.3) !important;
}

/* Select Dropdown */
.nf-field-element select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px !important;
  padding-right: 30px !important;
}

/* Submit Button */
.nf-field-element input[type="submit"],
.nf-field-element button[type="submit"] {
  margin-bottom: 20px !important;
  margin-top: 10px !important;
  padding: 16px 24px !important;
  background: linear-gradient(
      45deg,
      #005bac 0%,
      #5ec2c6 50%,
      #5ec2c6 51%,
      #005bac 100%
    )
    0 0 / 200% auto no-repeat !important;
  transition: 0.4s !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  width: auto !important;
  min-width: 200px !important;
}

.nf-field-element input[type="submit"]:hover,
.nf-field-element button[type="submit"]:hover {
  background-position: right center !important;
}

/* Center Submit Button */
.field-wrap.submit-wrap .nf-field-element {
  justify-content: center;
  align-items: center;
  display: flex;
}

/* Error Messages */
.nf-error-msg,
.nf-field-error {
  color: #c00 !important;
  font-size: 14px !important;
  margin-top: 5px !important;
  display: block !important;
}

/* Success Messages */
.nf-response-msg {
  background-color: #d4edda !important;
  color: #155724 !important;
  padding: 12px !important;
  border-radius: 4px !important;
  border: 1px solid #c3e6cb !important;
  margin-bottom: 20px !important;
}

/* Hide top message */
.nf-before-form-content {
  display: none;
}

/* Remove default Ninja Forms styling */
.nf-form-content {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Field wrapper */
.nf-field {
  margin-bottom: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Change field layout from column to row */
.field-wrap:not(.submit-wrap) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
}

/* Adjust label width in row layout */
.field-wrap:not(.submit-wrap) .nf-field-label {
  flex: 0 0 30% !important;
  width: 30% !important;
}

/* Adjust input width in row layout */
.field-wrap:not(.submit-wrap) .nf-field-element {
  flex: 1 !important;
  width: 70% !important;
}

/* Mobile responsive - switch back to column on small screens */
@media (max-width: 768px) {
  .field-wrap:not(.submit-wrap) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .field-wrap:not(.submit-wrap) .nf-field-label,
  .field-wrap:not(.submit-wrap) .nf-field-element {
    flex: none !important;
    width: 100% !important;
  }
}

/* Remove any default margins/padding */
.nf-field-element {
  margin: 0 !important;
  padding: 0 !important;
}

/* Placeholder styling */
.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder {
  color: #999 !important;
  opacity: 1 !important;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
  .nf-form-cont {
    padding: 0px 20px !important;
  }

  .nf-field-container {
    flex-direction: column !important;
  }

  .nf-field-label label {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .nf-field-label label::after {
    float: none !important;
    margin-left: 0 !important;
  }
}

/* Hide any unwanted Ninja Forms elements */
.nf-form-title,
.nf-form-hp {
  display: none !important;
}

/* Ensure proper field spacing */
.nf-field-container + .nf-field-container {
  margin-top: 0 !important;
}

/* Optional: Style for phone field if it should look different */
.nf-field-element input[type="tel"] {
  /* Same styling as other inputs, but you can customize if needed */
}

/* Style for any checkboxes or radio buttons if present */
.nf-field-element input[type="checkbox"],
.nf-field-element input[type="radio"] {
  width: auto !important;
  margin-right: 8px !important;
}

.nf-field-element .nf-field-label-pos-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Hide Ninja Forms' default required asterisk */
.ninja-forms-req-symbol {
  display: none !important;
}

/* Mark required fields */
.nf-field-label label:not([for*="phone"])::after {
  padding: 5px 6px 5px 6px;
  border-radius: 4px;
  font-size: 0.6em;
  color: white;
  background-color: #c44;
  content: "必須";
  float: right;
  margin-left: 10px;
}

/* Make sure optional fields don't get the indicator */
.nf-field-label label:not(:has(.ninja-forms-req-symbol))::after {
  display: none;
}
