/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Container */
.container-w100 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Logo */
.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin-bottom: 10px;
}

img.logo-top {
  width: 180px;
  max-width: 50%;
  height: auto;
}

/* Typography */
h1#title {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  margin: 0 0 30px 0;
  color: #fff;
}

h2.address {
  font-size: 1.2rem;
  font-weight: 300;
  color: #b6ff2d;
  margin: 30px 0 15px 0;
  text-align: center;
  width: 100%;
}

/* Links */
a {
  color: #b6ff2d;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #d4ff7a;
}

/* Form styling */
form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

form#consentForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Input fields */
input.name,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select.name {
  width: 100%;
  height: 50px;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #333;
  border-radius: 12px;
  background-color: #1a1a1a;
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

input.name:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select.name:focus {
  outline: none;
  border-color: #b6ff2d;
  box-shadow: 0 0 0 3px rgba(182, 255, 45, 0.1);
}

input::placeholder {
  color: #666;
}

/* Email input on first page */
input#email {
  width: 100%;
  max-width: 400px;
  height: 55px;
  padding: 15px 25px;
  font-size: 18px;
  text-align: center;
  border: 2px solid #333;
  border-radius: 12px;
  background-color: #1a1a1a;
  color: #fff;
  margin: 20px auto;
  display: block;
}

input#email:focus {
  outline: none;
  border-color: #b6ff2d;
  box-shadow: 0 0 0 3px rgba(182, 255, 45, 0.1);
}

/* Field labels */
.field-label {
  color: #999;
  font-size: 13px;
  margin-bottom: 5px;
  margin-top: 10px;
  display: block;
}

/* Input groups for address */
.input-group {
  margin: 0;
}

/* Address section styling */
h2.address + .input-group,
h2.address .input-group {
  margin-top: 0;
}

/* Upload container */
.upload-container {
  margin: 25px 0;
  padding: 20px;
  border: 2px dashed #333;
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.upload-container:hover {
  border-color: #b6ff2d;
}

.upload-container h2 {
  font-size: 1rem;
  font-weight: 300;
  color: #999;
  margin: 0 0 15px 0;
}

.upload-container input[type="file"] {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  color: #999;
}

.upload-container input[type="file"]::file-selector-button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  cursor: pointer;
  margin-right: 15px;
  transition: background-color 0.2s ease;
}

.upload-container input[type="file"]::file-selector-button:hover {
  background-color: #444;
}

/* Signature section */
canvas#signature-pad {
  width: 100%;
  max-width: 400px;
  height: 180px;
  background-color: #fff;
  border-radius: 12px;
  border: 2px solid #333;
  cursor: crosshair;
  touch-action: none;
  display: block;
  margin: 10px auto;
}

/* Checkboxes */
.checkboxes {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.labelcontainer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.labelcontainer:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.labelcontainer input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  cursor: pointer;
  accent-color: #b6ff2d;
}

heading.label {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  text-align: left;
}

heading.label a {
  font-weight: 700;
}

/* Buttons */
button {
  width: 100%;
  max-width: 300px;
  height: 55px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 10px auto;
  display: block;
}

button[type="submit"] {
  background: linear-gradient(135deg, #b6ff2d 0%, #9ee025 100%);
  color: #000;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(182, 255, 45, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

button#clear {
  background-color: #333;
  color: #fff;
  height: 45px;
  max-width: 200px;
}

button#clear:hover {
  background-color: #444;
}

button.submit {
  background: linear-gradient(135deg, #b6ff2d 0%, #9ee025 100%);
  color: #000;
  font-weight: 700;
}

/* Required note */
.required-note {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin: 20px 0;
}

/* Subtitle */
p.subtitle {
  color: #999;
  font-size: 1rem;
  text-align: center;
  margin: -20px 0 30px 0;
  font-weight: 300;
}

/* Response page */
.response-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 500px;
  text-align: center;
  margin-top: 20px;
}

.response-card h1#title {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.5;
}

.email-display {
  color: #b6ff2d;
  font-size: 1.2rem;
  word-break: break-all;
  margin: 20px 0;
  padding: 15px;
  background-color: rgba(182, 255, 45, 0.1);
  border-radius: 8px;
}

.btn-download {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #b6ff2d 0%, #9ee025 100%);
  color: #000;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(182, 255, 45, 0.3);
  color: #000;
}

/* Email form page */
.email-form-container {
  text-align: center;
  padding: 40px 20px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  body {
    margin: 0;
  }

  .container-w100 {
    padding: 15px;
  }

  img.logo-top {
    width: 140px;
  }

  h1#title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  h2.address {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
  }

  form#consentForm {
    padding: 0 10px;
    gap: 10px;
  }

  input.name,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select.name {
    height: 48px;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 10px;
  }

  input#email {
    height: 50px;
    font-size: 16px;
    padding: 12px 20px;
  }

  canvas#signature-pad {
    height: 150px;
    border-radius: 10px;
  }

  .labelcontainer {
    padding: 12px;
    gap: 10px;
  }

  .labelcontainer input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  heading.label {
    font-size: 13px;
  }

  button {
    height: 50px;
    font-size: 15px;
    border-radius: 10px;
  }

  button#clear {
    height: 40px;
    max-width: 160px;
  }

  .upload-container {
    padding: 15px;
    margin: 20px 0;
  }

  .upload-container h2 {
    font-size: 0.9rem;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  h1#title {
    font-size: 1.2rem;
  }

  img.logo-top {
    width: 120px;
  }

  input.name,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"] {
    height: 45px;
    font-size: 15px;
  }

  heading.label {
    font-size: 12px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

form#consentForm {
  animation: fadeIn 0.4s ease;
}

/* Date input styling for better mobile support */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Select styling */
select.name {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
