/* Button component styles */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary – main actions (e.g. Continue to payment) – Skyline Bar gold */
.btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 1.05rem;
  background-color: #BB894A;
  color: white;
  border: none;
}

.btn-primary:hover:not(:disabled) {
  background-color: #A27D14;
}

.btn-primary:focus-visible {
  outline: 2px solid #BB894A;
  outline-offset: 2px;
}

/* Secondary – language switcher, add gift card */
.btn-secondary {
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}

/* Ghost – link-style (remove, rules, close) */
.btn-ghost {
  padding: 0;
  background: none;
  border: none;
  color: #BB894A;
  text-decoration: underline;
  font-size: inherit;
}

.btn-ghost:hover:not(:disabled) {
  color: #A27D14;
}

.btn-ghost.btn-danger {
  color: #dc2626;
}

.btn-ghost.btn-danger:hover:not(:disabled) {
  color: #b91c1c;
}

/* Rules modal */
.rules-modal .modal {
  border: 1px solid #e5e7eb;
}

.rules-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 1rem;
  border-bottom: 2px solid #BB894A;
  letter-spacing: -0.025em;
}

.rules-modal-content {
  line-height: 1.65;
  color: #4b5563;
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border-left: 4px solid #BB894A;
}

.rules-section-title {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.rules-section-title:first-child {
  margin-top: 0;
}

/* Form inputs */
form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="tel"],
form input[type="url"],
form textarea,
form select,
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field textarea,
.form-field select,
.slider-field input[type="text"],
.slider-field input[type="number"],
.slider-field input[type="range"],
.recipient-email-container input,
.recipient-email-container textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus,
form textarea:focus,
form select:focus,
.form-field input:not([type="checkbox"]):focus,
.form-field textarea:focus,
.form-field select:focus,
.slider-field input:focus,
.recipient-email-container input:not([type="checkbox"]):not([type="radio"]):focus,
.recipient-email-container textarea:focus {
  outline: none;
  border-color: #BB894A;
  box-shadow: 0 0 0 3px rgba(187, 137, 74, 0.2);
}

form input::placeholder,
form textarea::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field textarea {
  min-height: 4rem;
  resize: vertical;
}

.form-field.legal-address-field textarea {
  min-height: 1.35rem;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
  min-height: 2.5rem;
  height: auto;
}

.form-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  cursor: pointer;
  accent-color: #BB894A;
  margin: 0;
  flex-shrink: 0;
}

.checkbox-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Headings – distinct from form labels (override Tailwind preflight) */
body h1 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

body h2 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #111827;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

body h3 {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
}

/* Form labels – keep smaller than headings */
.form-field label,
.slider-field label,
.recipient-email-container label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

/* Form validation – custom error messages and styling */
form.no-validate .form-field.has-error input,
form.no-validate .form-field.has-error textarea,
form.no-validate .form-field.has-error select,
form.no-validate .slider-field.has-error input,
form.no-validate .recipient-email-container .form-field.has-error input,
form.no-validate .recipient-email-container .form-field.has-error textarea {
  border-color: #dc2626;
}

form.no-validate .form-field.has-error input:focus,
form.no-validate .form-field.has-error textarea:focus,
form.no-validate .form-field.has-error select:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0 0;
}

ul.errorlist li {
  font-size: 0.875rem;
  color: #dc2626;
}

.form-errors {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  color: #dc2626;
  font-size: 0.875rem;
  list-style: none;
}

.form-errors li {
  margin-bottom: 0.25rem;
}

.form-errors li:last-child {
  margin-bottom: 0;
}

/* Hero section – Riga skyline, evening tone */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("https://images.unsplash.com/photo-1605649487212-47bdab064df7?w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(30, 41, 59, 0.6) 100%
  );
  pointer-events: none;
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem;
}

.hero-section .hero-logo {
  max-width: 200px;
  height: auto;
}

.hero-section .hero-tagline {
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: rgba(231, 204, 98, 0.95);
  margin-top: 0.5rem;
}

.hero-section .hero-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: #fff;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .hero-section {
    min-height: 45vh;
  }

  .hero-section .hero-logo {
    max-width: 260px;
  }

  .hero-section .hero-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.35rem;
  }

  .hero-section .hero-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 50vh;
  }

  .hero-section .hero-logo {
    max-width: 280px;
  }
}
