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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("/assets/header.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 10px;
}
.logo img {
  width: 100px;
  height: 100px;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.lang-btn.active {
  background: white;
  color: #667eea;
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.verification-card {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(77, 76, 76, 0.4);
  max-width: 550px;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.75);
}

.terms-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 20px;
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

/* Phone Section */
.phone-section {
  background-color: rgba(0, 0, 0, 0.75); /* Dark overlay */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
  max-width: 550px;
  width: 100%;
  margin: auto;
}

.phone-section.hidden {
  display: none;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #eee;
}

.phone-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.country-select,
.phone-input {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  flex: 1;
}

/* Hide native dropdown arrow */
.country-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  background-color: #eee;
  color: #333;
  cursor: default;
  width: 90px;
  height: 37.5px;
  font-size: 0.85rem;
  padding: 0.4rem;
  border-radius: 6px;
}

.country-select:focus,
.phone-input:focus {
  border-color: #667eea;
}

.country-select:disabled {
  border: 1px solid #ccc;
}

.verify-btn {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.verify-btn:hover {
  background-color: #d62839;
}

.verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* OTP Section */
.otp-section {
  display: none;
  padding: 40px;
}

.otp-section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.otp-inputs {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
}

.otp-input {
  width: 60px;
  height: 60px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  outline: none;
  transition: all 0.3s ease;
}

.otp-input:focus {
  border-color: #667eea;
  transform: scale(1.05);
}

.otp-input.filled {
  border-color: #28a745;
  background: #f8fff9;
}

.phone-display {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 20px;
}

.resend-link {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  margin-top: 20px;
  display: inline-block;
}

.resend-link:hover {
  text-decoration: underline;
}

.priceInfo {
  margin-top: 10px;
}

.priceInfo p {
  color: #8a8a8a;
  font-size: 12px;
  margin-top: 5px;
}

.headerSecondSection {
  display: flex;
  gap: 15px;
}

.downloadButton {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #667eea;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.downloadButton:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Error Message */

.error-message {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 5px;
}

.error-message.show {
  display: block;
}

.country-code {
  display: inline-block;
  padding: 0.55rem;
  background-color: #eee;
  color: #333;
  font-size: 0.95rem;
  border-radius: 6px;
  min-width: 65px;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .phone-input {
    padding: 0.6rem;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    width: 150px;
    flex: 1;
  }

  .country-select {
    flex: none;
    width: 70px;
  }

  .otp-inputs {
    gap: 10px;
  }

  .otp-input {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .header-content {
    gap: 15px;
  }

  .headerSecondSection {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .downloadButton {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .header-content {
    flex-direction: column;
  }
}
