/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f9fafb;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

/* Header */
.header {
  background: #1f2937;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.logo span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav a.active {
  color: #8b5cf6;
  font-weight: 600;
}

.nav a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 1.2rem;
}

/* Search Section */
.search-section {
  padding: 4rem 0;
}

.search-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.search-form {
  padding: 2rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #8b5cf6;
}

/* Buttons */
.btn-primary {
  background: #8b5cf6;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.btn-primary:hover {
  background: #7c3aed;
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Loader */
.loader-container {
  text-align: center;
  padding: 2rem;
}

.loader {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #8b5cf6;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loader-subtext {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress {
  height: 100%;
  background: #8b5cf6;
  width: 0%;
  transition: width 0.3s;
}

/* Result */
.result-success {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.result-success h3 {
  color: #065f46;
  margin-bottom: 0.5rem;
}

.result-success p {
  color: #047857;
}

/* Privacy Agreement */
.privacy-agreement {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.privacy-agreement a {
  color: #8b5cf6;
  text-decoration: none;
}

.privacy-agreement a:hover {
  text-decoration: underline;
}

/* Payment Styles */
.payment-section {
  padding: 2rem 0 4rem;
}

.payment-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.payment-header {
  background: #1f2937;
  color: white;
  padding: 2rem;
  text-align: center;
}

.payment-form {
  padding: 2rem;
}

.card-input-container {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card-type {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.form-group {
  position: relative;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.sms-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sms-actions .btn-primary,
.sms-actions .btn-secondary {
  flex: 1;
}

.sms-attempts {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.success-container {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* SMS Section */
.sms-section {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.sms-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sms-header {
  background: #1f2937;
  color: white;
  padding: 2rem;
  text-align: center;
}

.sms-form {
  padding: 2rem;
}

.success-message {
  text-align: center;
  padding: 2rem;
  background: #ecfdf5;
  border-radius: 8px;
  margin: 2rem;
}

.success-message h3 {
  color: #065f46;
  margin-bottom: 1rem;
}

.success-message p {
  color: #047857;
  margin-bottom: 2rem;
}

.attempts-counter {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Additional Pages */
.page-section {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.page-section h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-card a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.contact-form textarea:focus {
  outline: none;
  border-color: #8b5cf6;
}

.policy-content,
.terms-content,
.instructions-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.policy-content h2,
.terms-content h2,
.instructions-content h2 {
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.policy-content h3,
.terms-content h3 {
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.policy-content ul,
.terms-content ul,
.instructions-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-content li,
.terms-content li,
.instructions-content li {
  margin-bottom: 0.5rem;
}

.policy-content a,
.terms-content a,
.instructions-content a {
  color: #8b5cf6;
  text-decoration: none;
}

.policy-content a:hover,
.terms-content a:hover,
.instructions-content a:hover {
  text-decoration: underline;
}

.instruction-step {
  background: #f8fafc;
  border-left: 4px solid #8b5cf6;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
}

.instruction-step h2 {
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.important-info {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.important-info h2 {
  color: #92400e;
  margin-top: 0;
  margin-bottom: 1rem;
}

.important-info ul {
  margin-left: 1.5rem;
}

.important-info li {
  color: #92400e;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .search-section {
    padding: 2rem 0;
  }

  .search-form,
  .payment-form,
  .sms-form {
    padding: 1.5rem;
  }

  .payment-header,
  .sms-header {
    padding: 1.5rem;
  }

  .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .contact-card,
  .policy-content,
  .terms-content,
  .instructions-content,
  .contact-form-section {
    padding: 1.5rem;
  }

  .page-section {
    padding: 1.5rem 0 3rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .nav {
    font-size: 0.9rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .logo span {
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .sms-actions {
    flex-direction: column;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
