* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  overflow-x: hidden;
  background: linear-gradient(to right, #c4d0e9 0%, #dde5f4 100%);

  /* padding: 20px; */
}

.main-cont {
  width: 100vw;
  /* height: 100vh; */
  min-height: 100vh;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/tieyoung-e964a.appspot.com/o/BEM%2FRegistration%20Laptop.png?alt=media&token=fbf2d20f-84c1-48e5-9d45-cfa701ba042b");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat; /* Prevents image repetition */
  background-attachment: fixed; /* Keeps background fixed during scroll */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#thankYouModal {
  /* display: block; */
}

.logoImg {
  width: 40vw;
  margin-block: 50px;
}

.textImg {
  width: 25vw;
}

.container {
  /* background: rgba(255, 255, 255, 0.05); */
  /* backdrop-filter: blur(10px); */
  border-radius: 20px;
  padding: 40px;
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
  width: 100%;
  max-width: 60vw;
  /* background-color: red; */
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}

.form-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
}

.input-row.single {
  flex-direction: column;
}

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

.form-group.full-width {
  flex: 1 1 100%;
}

.form-group label {
  display: block;
  color: #555;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #ced2da;
  border-radius: 8px;
  font-size: 17px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  color: #3e3e3f;
  font-weight: 600;
}

select {
  /* color: #949495; */
}

.form-group input:focus,
select:focus {
  outline: none;

  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

option:first-child {
  display: none;
}

option {
  font-weight: 500;
}

.guest-names {
  display: none;
  margin-top: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

.guest-names.show {
  display: flex;
  gap: 20px;
}

.guest-input {
  width: 100%;
  /* margin-bottom: 10px; */
}

.guest-input input {
  font-size: 16px;
  padding: 15px 12px;
  border: 1px solid #ced2da;
  border-radius: 6px;
  width: 100%;
  font-weight: 500px;
  background-color: #ededed;
  transition: all 0.3s ease;
}

.guest-input input:focus {
  border: 1px solid #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.guest-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.submit-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.submit-btn {
  width: 60%;
  margin-top: 20px;
  padding: 18px 20px;
  background: #1b2469;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: #111743;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-title {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
}

.modal-message {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.calendar-btn {
  background: linear-gradient(135deg, #394ad2 0%, #1b2469 100%);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

.undertext {
  margin-block: 50px 50px;
  color: #1b2469;
  font-weight: 600;
  font-size: 15px;
  width: 100%;
  text-align: center;
  padding: 0 10%;
  line-height: 1.7rem;
}

.undertext span {
  color: #5f676c;
  text-wrap: nowrap;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 600px) {

  .thebr{
    display: none;
  }

  .main-cont {
    background-image: url("https://firebasestorage.googleapis.com/v0/b/tieyoung-e964a.appspot.com/o/BEM%2FRegistration%20Phone.png?alt=media&token=022f7fa0-7a26-426f-b27f-2e176f55209c");
  }

  .logoImg {
    width: 65vw;
    margin-block: 80px 40px;
  }

  .textImg {
    width: 45vw;
  }

  .undertext {
    margin-block: 30px 60px;
  }

  .input-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }

  .container {
    max-width: 100vw;
    padding: 20px 30px;
    margin: 10px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-group input,
  select {
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 600;
  }

  .submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 20px 15px;
    font-size: 16px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 30px 25px;
  }
}

/* Success Animation */
.success-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #394ad2 0%, #1b2469 100%);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.6s ease;
}

.success-icon::after {
  content: "✓";
  color: white;
  font-size: 30px;
  font-weight: bold;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.required {
  color: red;
}
