body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #fdfaf6, #f5f5f5);
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.form-container {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
}

.form-container h1 {
  text-align: center;
  color: #4a2c2a;
  margin-bottom: 10px;
  font-size: 28px;
}

.form-container h2 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #4a2c2a; 
}

.form-group input {
  padding: 10px;
  border: 1px solid #c49b63; 
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

.form-group input:focus {
  border-color: #4a2c2a;
  box-shadow: 0 0 5px rgba(74, 44, 42, 0.3);
  outline: none;
}

.terms {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fdfaf6;
  max-height: 200px;
  overflow-y: auto;
}

.terms label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.submit-btn {
  background: #4a2c2a;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
}
.submit-btn:hover {
  background: #6b3f3b;
  transform: scale(1.02);
}
.back-btn {
  background-color: #4a3428; 
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
  display: inline-block;
}
.back-btn:hover {
  background-color: #6b4c3b;
  transform: translateY(-2px);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}


.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}

/* 📸 Photo Box */
.photo-box {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 140px;
  height: 150px;
  border: 2px dashed #c49b63;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  text-align: center;
  font-size: 12px;
  color: #777;
  padding: 5px;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.custom-upload {
  position: relative;
  display: inline-block;
  background: #4a2c2a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: background 0.3s;
}

.custom-upload:hover {
  background: #6b3f3b;
}

.custom-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .form-container {
    padding: 20px;
  }

  .photo-box {
    position: static; /* ✅ moves photo box inside flow */
    margin: 0 auto 20px auto;
    width: 120px;
    height: 130px;
  }

  .form-row {
    flex-direction: column; /* ✅ stack inputs vertically */
  }

  .submit-btn {
    font-size: 14px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .form-container h1 {
    font-size: 22px;
  }

  .form-container h2 {
    font-size: 18px;
  }

  .form-group input {
    font-size: 13px;
    padding: 8px;
  }

  .custom-upload {
    font-size: 11px;
    padding: 5px 10px;
  }
}