/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url("bbg.jpg") no-repeat center  fixed ;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
  background-size: cover;
}

/* Container Styling */
.container {
  background:url("paper.jpg") center center fixed;
  background-size: cover;
  border-radius: 12px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding: 25px 30px;
  width: 90%;
  max-width: 350px;
  animation: slideIn 0.5s ease;
}

/* Header */
header {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: black;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Form Styling */
.form {
  display: flex;
  flex-direction: column;
}

.input-box {
  margin-bottom: 20px;
}

.input-box label {
  display: block;
  font-size: 1 rem;
  margin-bottom: 8px;
  color: #1D1E20;
  font-weight: bold;
}

.input-box input,
.input-box select {
  width: 90%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1.5px solid #dfe6e9;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box input:focus,
.input-box select:focus {
  border-color: #0984e3;
  box-shadow: 0 0 5px rgba(9, 132, 227, 0.5);
}

.visitor-box h3 {
  font-size: 1rem;
  color: #030303;
  margin-bottom: 10px;
}

.visitor-option {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.visitor input[type="radio"] {
  margin-right: 5px;
  accent-color: #020202;
}

.visitor label {
  font-size: 1.4rem;
  color: #2c3a47;
}

/* Sections for Office and Site Visits */
.field-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.field-section.active {
  display: block;
}

button[type="submit"] {
  background: #0984e3;
  color: #fff;
  padding: 12px 18px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
  background: #74b9ff;
  transform: scale(1.05);
}

button[type="submit"]:active {
  transform: scale(0.98);
}

/* Readonly Field Styling */
.readonly-field {
  background-color: #f1f2f6;
  cursor: not-allowed;
  color: #7f8fa6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 20px;
  }

  header {
    font-size: 1.5rem;
  }

  button[type="submit"] {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 15px;
  }

  header {
    font-size: 1.3rem;
  }

  .visitor-option {
    flex-direction: column;
    align-items: center;
  }

  button[type="submit"] {
    padding: 15px;
    font-size: 0.9rem;
  }
}

/* Larger Screens */
@media (min-width: 1024px) {
  .container {
    max-width: 600px;
    padding: 40px;
  }

  header {
    font-size: 2rem;
  }

  button[type="submit"] {
    font-size: 1.2rem;
    padding: 18px 28px;
  }
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
