:root {
  --background-color: #f7f7f7;
  --text-color: #111;
}

html.dark {
  --background-color: #111;
  --text-color: #f7f7f7;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.theme-toggle-wrapper {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000; /* Ensures it stays above other elements */
}

.theme-toggle-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #ddd;
  color: #111;
}

html.dark .theme-toggle-btn {
  background: #444;
  color: #fff;
}

.hero-section {
  flex: 1;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4e4e4;
}

html.dark .hero-section {
  background: #333;
}

.container {
  padding: 1rem;
  max-width: 600px;
  width: 100%;
  margin: auto;
}

.main-heading {
  text-align: center;
  font-size: 2rem;
}

.emoji {
  font-size: 4rem;
}

.domain-name {
  color: #0A3161;
}

html.dark .domain-name {
  color: #90cdf4;
}

.availability {
  font-size: 1.25rem;
  color: #444;
}

html.dark .availability {
  color: #aaa;
}

.description {
  margin-top: 1rem;
  text-align: center;
}

.offer-button-wrapper {
  margin-top: 1rem;
  text-align: center;
}

.price-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0A3161;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.125rem;
}

html.dark .price-button {
  background-color: #3b82f6;
}

.price-date {
  color: #666;
  margin-top: 0.5rem;
}

html.dark .price-date {
  color: #ccc;
}

.form-section {
  flex: 1;
  background-color: #fff;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html.dark .form-section {
  background-color: #444;
}

.form-container {
  max-width: 400px;
  width: 100%;
}

.offer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
}

.form-heading {
  text-align: center;
  font-size: 1.5rem;
  color: #0A3161;
}

html.dark .form-heading {
  color: #90cdf4;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #000;
}

html.dark .form-input,
html.dark .form-textarea {
  background-color: #333;
  color: #fff;
  border: 1px solid #666;
}

.readonly {
  background-color: #eee;
}

html.dark .readonly {
  background-color: #222;
}

.submit-button {
  padding: 0.75rem 1rem;
  background-color: #B31942;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

html.dark .submit-button {
  background-color: #ef4444;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  margin-top: auto;
}

html.dark .site-footer {
  background-color: #222;
}

.disclaimer-text {
  font-size: 0.75rem;
  color: #333;
}

html.dark .disclaimer-text {
  color: #bbb;
}

.mt {
  margin-top: 0.5rem;
}

.valid {
  border-color: green;
}

.invalid {
  border-color: red;
}
