:root {
  --primary: #990000;
  --secondary: #f5f5f5;
  --text: #333;
  --border: #ddd;
}
#sameAsMobile {
  width: auto;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  background-color: var(--secondary);
  color: var(--text);
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.header {
  display: flex;
  align-items: center; /* Aligns items vertically */
  justify-content: center; /* Centers content horizontally */
  gap: 1rem; /* Adds space between logo and heading */
  flex-wrap: wrap;
}

.logo {

  height: 10vh;
}

h1 {
  color: var(--primary);
  font-size: 2.2rem;
  margin: 0; /* Remove margin to avoid spacing issues */
  white-space: wrap; /* Prevents wrapping */
}

.form-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.required::after {
  content: "*";
  color: var(--primary);
  margin-left: 3px;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 0.3rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.1);
  outline: none;
}

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

.phone-group {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.country-code {
  width: 160px;
  min-width: 160px;
}

.custom-code {
  display: none;
  width: 120px;
}

.visible {
  display: block !important;
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 0.8rem;
  margin: 1rem 0;
}

button {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #7a0000;
}

::placeholder {
  color: #999;
  opacity: 1;
}

.error {
  border-color: #ff4444 !important;
}

.error-message {
  color: #ff4444;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: none;
}
/* Add this to your existing CSS */
.back-button {
  background: #666;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  width: 100%;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
}

.back-button:hover {
  background: #444;
}