/* ✅ RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ✅ BODY */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: white;
  line-height: 1.6;
  padding: 2rem;
}

/* ✅ MAIN CONTAINER */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding-bottom: 3rem;
  /* space before footer */
  min-height: 80vh;
  /* take most of the screen height */
  align-items: center;
  /* vertically align children */
}

/* ✅ LEFT SECTION */
.left {
  flex: 1;
  min-width: 280px;
  margin-left: -100px;

  /* ✅ Center horizontally & vertically */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical center */
  align-items: center;
  /* horizontal center */
  text-align: center;
  /* keep text aligned center */
  padding: 2rem 0;
  /* some breathing space */
}

.left h1 {
  font-size: 3rem;
  margin: 1rem 0;
}

/* ✅ RIGHT SECTION (FORM) */
.right {
  flex: 1;
  min-width: 300px;
  margin-top: 5rem;
  /* push form a little lower */
  margin-left: -80px;
}

/* ✅ FORM LAYOUT */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Form group: side-by-side inputs */
.form-group {
  display: flex;
  gap: 1rem;
  width: 100%;
}

/* ✅ INPUTS + TEXTAREA */
.form-group input,
.form-group textarea {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #555;
  background: #111;
  color: white;
  border-radius: 4px;
  font-size: 1rem;
  appearance: none;
  /* remove default browser styles */
}

/* ✅ SELECT DROPDOWN */
.form-group select {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ffffff;
  background: #111;
  color: #f5f5f5;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  /* remove default arrow */
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all 0.3s ease;
}

.form-group select:hover {
  border-color: #a26b47;
  /* leather-like hover tone */
}

.form-group select option {
  background: #111;
  /* dropdown list background */
  color: #f5f5f5;
}

/* ✅ TEXTAREA */
textarea {
  height: 120px;
  resize: vertical;
}

/* ✅ CHECKBOX + PRIVACY POLICY */
.checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #aaa;
}

.checkbox a {
  color: white;
  text-decoration: none;
}

#policy {
  margin-top: 4px;
}

.checkbox a:hover {
  color: #51619b;
}

/* ✅ SUBMIT BUTTON */
button {
  background-color: #333;
  color: black;
  padding: 0.8rem 1.5rem;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

button:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ✅ FOOTER */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  padding-top: 3rem;
  margin-top: auto;
}

footer a {
  color: white;
  text-decoration: none;
  pointer-events: fill;
}

footer p {
  pointer-events: none;
}

/* ✅ CARD LIST (if used elsewhere) */
.card-list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 1rem;
  margin-top: 5%;
  margin-left: 17px;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: #7a7474;
  color: #000;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(224, 224, 224, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  backdrop-filter: blur(25px);
}

.card i {
  font-size: 1.3rem;
  color: #555;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.15);
  background-color: white;
}


.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #333;
  color: black;
  text-decoration: none;
  border: 2px solid #333;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.home-btn:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.home-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ✅ LARGE TABLETS & SMALL LAPTOPS (768px - 1024px) */
@media screen and (max-width: 1024px) {
  body {
    padding: 1.5rem;
  }

  .container {
    gap: 1.5rem;
    min-height: 75vh;
  }

  .left {
    margin-left: -50px;
  }

  .left h1 {
    font-size: 2.5rem;
  }

  .right {
    margin-left: -40px;
    margin-top: 3rem;
  }
}

/* ✅ TABLETS (iPad, Android tablets 768px - 1024px) */
@media screen and (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .container {
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
    align-items: stretch;
  }

  .left {
    margin-left: 0;
    padding: 1rem 0;
    order: 1;
  }

  .left h1 {
    font-size: 2.2rem;
    margin: 0.8rem 0;
  }

  .right {
    margin-left: 0;
    margin-top: 0;
    order: 2;
  }

  /* Form adjustments for tablets */
  form {
    gap: 1.2rem;
  }

  .form-group {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 1rem;
    font-size: 1.1rem;
  }

  textarea {
    height: 140px;
  }

  button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
  }

  /* Card list for tablets */
  .card-list {
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    margin-left: 0;
    padding: 1.2rem;
    font-size: 1rem;
  }
}

/* ✅ MOBILE PHONES (320px - 767px) */
@media screen and (max-width: 767px) {
  body {
    padding: 0.8rem;
    font-size: 14px;
  }

  .container {
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .left h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    line-height: 1.3;
  }
  .left h4 {
    display: none;
  }
  .left h3 {
    display: none;
  }

  /* Enhanced form for mobile */
  form {
    gap: 1rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: 6px;
    /* Prevent zoom on iOS */
    -webkit-text-size-adjust: 100%;
  }

  /* Mobile-specific select styling */
  .form-group select {
    background-position: right 10px center;
    background-size: 14px;
  }

  textarea {
    height: 120px;
    resize: none;
    /* Disable resize on mobile */
  }

  button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
  }

  /* Checkbox adjustments */
  .checkbox {
    font-size: 0.85rem;
    align-items: center;
  }

  /* Footer adjustments */
  footer {
    font-size: 0.75rem;
    padding-top: 2rem;
  }

  .home-btn {
    padding: 10px 16px;
    font-size: 13px;
    gap: 6px;
  }

  .home-icon {
    width: 16px;
    height: 16px;
  }
}

/* ✅ SMALL MOBILE PHONES (320px - 480px) */
@media screen and (max-width: 480px) {
  body {
    padding: 0.6rem;
  }

  .left h1 {
    font-size: 1.6rem;
    word-break: break-word;
  }
  .left h4 {
    display: none;
  }
  .left h3 {
    display: none;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  button {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .card {
    padding: 1rem;
    font-size: 0.9rem;
    gap: 0.8rem;
  }

  .card i {
    font-size: 1.1rem;
  }
}

/* ✅ VERY SMALL SCREENS (below 320px) */
@media screen and (max-width: 320px) {
  body {
    padding: 0.5rem;
  }

  .left h1 {
    font-size: 1.4rem;
  }
  .left h4 {
    display: none;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  button {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

/* ✅ LANDSCAPE MOBILE ORIENTATION */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .container {
    flex-direction: row;
    align-items: flex-start;
    min-height: auto;
  }

  .left {
    flex: 0.8;
    padding: 1rem 0;
  }

  .left h1 {
    font-size: 1.6rem;
    margin: 0.5rem 0;
  }

  .right {
    flex: 1.2;
    margin-top: 0;
  }

  form {
    gap: 0.8rem;
  }

  textarea {
    height: 80px;
  }
}

/* ✅ TOUCH DEVICE IMPROVEMENTS */
@media (hover: none) and (pointer: coarse) {

  /* Better touch targets */
  button,
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 44px;
    /* Minimum touch target size */
  }

  /* Remove hover effects on touch devices */
  button:hover,
  .home-btn:hover,
  .card:hover {
    transform: none;
  }

  /* Better focus states for accessibility */
  button:focus,
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: 2px solid #51619b;
    outline-offset: 2px;
  }
}

/* ✅ HIGH DPI DISPLAYS (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 16px;
  }
}