/* Add additional styles for language dropdown and theme toggle */

/* Language selector improvements */
.navbar-actions select {
  color: var(--color-primary);
  width: 70px;
  height: 40px;
  border-radius: 20px;
  font-size: var(--fs-5);
  padding: 5px;
  background-color: var(--dropdown-bg, transparent);
  border: 1px solid var(--dropdown-border, var(--color-secondary));
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px top 50%;
  text-align: center;
  padding-right: 20px;
}

.navbar-actions select:hover {
  border-color: var(--raw-seinna);
}

.navbar-actions option {
  background: var(--dropdown-bg, var(--bg-primary));
  color: var(--dropdown-text, var(--color-primary));
  padding: 10px;
}

/* Theme toggle button improvements */
.theme-btn {
  padding: 4px;
  width: 48px;
  background: var(--bg-secondary);
  border-radius: 100px;
  transition: var(--transition-1);
  cursor: pointer;
  border: 1px solid var(--color-secondary);
  position: relative;
  display: flex;
  align-items: center;
}

.theme-btn .icon {
  position: relative;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50px;
  box-shadow: inset 9px -6px var(--color-primary);
  transition: transform 0.3s ease, left 0.3s ease, box-shadow 0.3s ease;
  margin-left: 2px;
}

.theme-btn.active .icon {
  left: 24px;
  transform: translateX(-2px);
  box-shadow: inset 20px -20px var(--sizzling-sunrise);
}

/* Ensure proper footer text visibility */
body.dark_theme .footer,
body.dark_theme .footer p,
body.dark_theme .footer a {
  color: hsl(103, 41%, 69%) !important;
}

body.light_theme .footer,
body.light_theme .footer p,
body.light_theme .footer a {
  color: var(--color-primary) !important;
}

/* Extra specificity rule for contact title centering */
body .page-wrapper .main-content .contact .contact-content .section-title[data-translate="contactTitle"] {
  text-align: center !important;
  display: block !important;
  margin: 0 auto 20px auto !important;
}

/* Centered contact section */
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  width: 100%;
}

.contact-content {
  max-width: 700px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.title-wrapper {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact .section-title {
  text-align: center !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  font-size: 1.75rem;
  display: block;
}

.contact .section-subtitle {
  text-align: center !important;
  margin-bottom: 30px;
  display: block;
  width: 100%;
  position: relative;
  padding-bottom: 15px;
}

.contact .section-subtitle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--color-secondary);
}

.contact .section-text {
  text-align: center !important;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  margin-top: 30px;
}

.form-wrapper {
  margin-bottom: 20px;
  text-align: left;
}

.contact .section-title {
  margin-bottom: 15px;
}

.contact .section-text {
  margin-bottom: 30px;
}
