* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F9F6F3;
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3B3838;
  padding-left: 10px;
  padding-right: 10px;
  gap: 10px;
}

/* Countdown styles */
.countdown-container {
  display: none;
  text-align: center;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.countdown-container.active {
  display: block;
}

.countdown-title {
  font-size: 1.8rem;
  color: #D20101;
  margin-bottom: 1rem;
  font-weight: 700;
}

.countdown-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.countdown-block {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 80px;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #D20101;
  display: block;
}

.countdown-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Login container - hidden by default when countdown is active */
.container {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(59, 56, 56, 0.1);
  padding: 15px 25px;
  box-shadow: 0 10px 25px rgba(59, 56, 56, 0.05);
  width: 100%;
  max-width: 420px;
  margin: 10px;
  display: block;
}

/* Hide login when countdown is active */
body:has(.countdown-container.active) .container {
  display: none;
}

.host-login-btn {
  background: #ffffff;
  color: #3B3838;
  border: none;
  border-radius: 6px;
  padding: 0px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.host-login-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.host-login-btn:hover:not(:disabled) {
  background: #f2f2f2;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.host-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.logo img {
  height: 75px;
  width: auto;
  max-width: 100%;
}

.logo h1 {
  font-size: 2rem;
  color: #D20101;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}

.logo p {
  color: #969697;
  font-size: 0.875rem;
  margin: 0;
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

select, input {
  width: 100%;
  padding: 15px;
  border: 1px solid #969697;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: white;
  color: #3B3838;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select:focus, input:focus {
  outline: none;
  border-color: #e93928;
  box-shadow: 0 0 0 2px rgba(233, 46, 40, 0.2);
}

button {
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 50px;
}

.btn-primary {
  background: #e93928;
  color: white;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(233, 46, 40, 0.2);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff3d;
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 500;
  display: none;
  font-size: 14px;
  word-wrap: break-word;
}

.alert.success {
  background: rgba(21, 128, 61, 0.2);
  color: #45ff45;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.alert.error {
  background: rgba(185, 28, 28, 0.2);
  color: #ff4545;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.alert.warning {
  background: rgba(180, 83, 9, 0.2);
  color: #ffa545;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.participant-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #3B3838;
}

/* Help Button */
.help-btn {
  margin-top: 15px;
  background: #f97316;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  animation: slideIn 0.3s ease-out;
}

.help-btn:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);    
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 35px 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);        
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  color: #3B3838;
  text-align: center;
  line-height: 1.5;
}

.modal-description {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  line-height: 1.8;
  padding: 0 10px;
}

.contact-number {
  text-align: center;
  margin: 0 0 30px 0;
}

.phone-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: inline-block;
}

.phone-number:hover {
  color: #047857;
  text-decoration: underline;
  transform: scale(1.02);
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #3B3838;
}

.help-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 25px;
}

.help-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.call-btn {
  background: #f0fdf4;
  color: #059669;
  border-color: #bbf7d0;
}

.call-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-2px);
}

.whatsapp-btn {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.whatsapp-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-2px);
}

.help-action-btn .icon {
  font-size: 26px;
}

.whatsapp-logo {
  font-size: 26px;
}

.help-action-btn span:last-child {
  font-size: 13px;
}

/* Tablet styles */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .host-login-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .container {
    padding: 35px 30px;
    margin: 15px;
    max-width: 500px;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .logo img {
    height: 65px;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  body {
    padding: 90px 15px;
  }

  .host-login-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 4px;
    top: 15px;
    right: 15px;
  }

  .host-login-btn svg {
    width: 12px;
    height: 12px;
  }

  .container {
    padding: 25px 20px;
    margin: 10px;
    border-radius: 12px;
  }

  .logo h1 {
    font-size: 1.6rem;
    letter-spacing: -0.3px;
  }

  .logo img {
    height: 55px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  select, input {
    padding: 12px;
    font-size: 16px;
  }

  button {
    padding: 12px;
    font-size: 15px;
    min-height: 48px;
  }

  .participant-title {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .alert {
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    padding: 20px 15px;
    margin: 5px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .logo img {
    height: 50px;
  }

  .host-login-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    padding-top: 60px;
    align-items: flex-start;
    padding-bottom: 20px;
  }

  .container {
    margin: 10px auto;
    padding: 20px;
  }

  .logo {
    margin-bottom: 15px;
  }

  .logo img {
    height: 40px;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .form-group {
    margin-bottom: 15px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e5e5e5;
  }

  .container {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  select, input {
    background: #3a3a3a;
    border-color: #555;
    color: #e5e5e5;
  }

  .host-login-btn {
    background: #3a3a3a;
    color: #e5e5e5;
  }

  .host-login-btn:hover:not(:disabled) {
    background: #4a4a4a;
  }

  .modal-content {
    background: #2d2d2d;
    color: #e5e5e5;
  }

  .modal-content h2 {
    color: #e5e5e5;
  }

  .modal-description {
    color: #aaa;
  }

  .phone-number {
    color: #6ee7b7;
  }

  .phone-number:hover {
    color: #a7f3d0;
  }

  .close {
    color: #999;
  }

  .close:hover {
    color: #e5e5e5;
  }

  .call-btn {
    background: #1a3a2a;
    color: #6ee7b7;
    border-color: #064e3b;
  }

  .call-btn:hover {
    background: #22543d;
    border-color: #065f46;
  }

  .whatsapp-btn {
    background: #1a3a2a;
    color: #6ee7b7;
    border-color: #064e3b;
  }

  .whatsapp-btn:hover {
    background: #22543d;
    border-color: #065f46;
  }
}