body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #333;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Globe Language Selector */
#language-selector {
  text-align: right;
  margin: 15px 0;
}

#globe-selector {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.globe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: #d80810; /* DRS red color */
}

.globe-icon svg {
  stroke: #d80810; /* DRS red color for SVG stroke */
}

#globe-selector:hover .globe-icon {
  transform: rotate(10deg);
}

#lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  min-width: 120px;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#lang-dropdown.active {
  opacity: 1;
  transform: translateY(5px);
}

.lang-option {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-option:hover {
  background-color: #f0f0f0;
}

.lang-option.selected {
  background-color: #f0f0f0;
  font-weight: 600;
}

#logo-container {
  text-align: center;
  margin: 1.5em 0;
}

#logo {
  max-width: 180px;
  height: auto;
}

#title {
  margin-bottom: 0.5em;
  text-align: center;
  font-size: 1.8rem;
}

/* Introduction text */
.intro-text {
  text-align: center;
  margin-bottom: 1.5em;
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#drs-survey {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2em;
  background: #fff;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: opacity 0.3s ease;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-item {
  display: inline-flex; 
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Custom radio buttons with DRS red */
.radio-item input[type="radio"] {
  /* Hide the default radio button */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
}

.radio-item input[type="radio"]:checked {
  border-color: #d80810; /* DRS red for the border */
}

/* The dot inside the radio button */
.radio-item input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d80810; /* DRS red for the dot */
}

/* Hover state */
.radio-item input[type="radio"]:hover {
  border-color: #aa080d; /* Darker DRS red on hover */
}

.radio-item label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px; /* Better for mobile */
}

button[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 1.5em auto 0;
  background-color: #d80810;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #aa080d;
}

/* Success Message Styles */
#success-message {
  width: 100%;
  max-width: 600px;
  margin: 2em auto;
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  line-height: 70px;
  font-size: 36px;
}

#success-title {
  color: #4CAF50;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

#success-text {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.5em;
}

#new-survey-btn {
  margin-top: 20px;
  background-color: #d80810;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#new-survey-btn:hover {
  background-color: #aa080d;
}

/* Utility class to hide elements */
.hidden {
  display: none !important;
}

/* Form feedback styles */
.form-feedback {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 500;
}

.feedback-error {
  background-color: #ffe6e6;
  border-left: 4px solid #d80810;
  color: #d80810;
}

/* Form field validation styles */
.field-error {
  border: 1px solid #d80810 !important;
}

.error-message {
  color: #d80810;
  font-size: 0.9em;
  margin-top: 6px;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  #language-selector {
    text-align: center;
    margin: 15px 0;
  }
  
  #title {
    font-size: 1.5rem;
    padding: 0 10px;
  }
  
  .intro-text {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  #drs-survey {
    padding: 1.2em;
    margin-bottom: 1em;
    border-radius: 6px;
  }
  
  .form-group {
    margin-bottom: 1.2em;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 0.7rem;
  }
  
  .radio-item {
    width: 100%;
    margin-bottom: 0.3rem;
  }
  
  /* Make radio buttons even larger on mobile */
  .radio-item input[type="radio"] {
    width: 24px;
    height: 24px;
  }
  
  .radio-item input[type="radio"]:checked::after {
    width: 12px;
    height: 12px;
  }
  
  /* Text inputs with more padding for touch */
  .form-group input[type="text"] {
    padding: 14px;
  }
  
  /* Larger submit button for mobile */
  button[type="submit"] {
    width: 100%;
    padding: 14px;
  }
  
  #success-message {
    padding: 1.5em;
    margin: 1em auto;
  }
  
  /* Mobile adjustments for language selector */
  .globe-icon svg {
    width: 28px;
    height: 28px;
  }
  
  #lang-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px);
  }
  
  #lang-dropdown.active {
    transform: translateX(-50%) translateY(5px);
  }
}

/* Very small screens */
@media screen and (max-width: 480px) {
  #logo {
    max-width: 150px;
  }
  
  #title {
    font-size: 1.3rem;
  }
  
  .intro-text {
    font-size: 0.95rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
  }
  
  .success-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 30px;
  }
  
  #success-title {
    font-size: 1.5rem;
  }
  
  #success-text {
    font-size: 1rem;
  }
}
