body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom right, #e3f2fd, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
}

.container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 24px;
    margin-bottom: 1rem;
    color: #333;
}

.hint {
    font-size: 14px;
    color: #555;
    margin-top: 0%;
    margin-bottom: 1rem;
}

.search-container {
    position: relative;
    margin: 10px 0 20px;
}

#churchSearch {
    width: 100%;
    padding: 14px 40px 14px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border 0.2s ease;
    box-sizing: border-box;
}

#churchSearch:focus {
    border-color: #1976d2;
    outline: none;
}

.dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 14px;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-option {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #e3f2fd;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option.selected {
    background-color: #1976d2;
    color: white;
}

select {
    width: 100%;
    padding: 14px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #ccc;
    border-top: none;
    font-size: 16px;
    transition: border 0.2s ease;
    box-sizing: border-box;
    max-height: 200px;
    overflow-y: auto;
}

select:focus {
    border-color: #1976d2;
    outline: none;
}

/* When search input is focused, also highlight the dropdown */
#churchSearch:focus + select {
    border-color: #1976d2;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #1976d2;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0d47a1;
}

footer {
    margin-top: 1%;
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: #1976d2;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.system-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
}

.system-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.3s, background-color 0.3s;
    cursor: pointer;
    margin-bottom: 1%;
}

.system-option:hover {
    border-color: #1976d2;
    background-color: #e3f2fd;
}

.system-option .icon {
    font-size: 24px;
    margin-right: 1rem;
}

.system-option .info h3 {
    margin: 0 0 0.2rem;
    color: #1976d2;
    font-size: 18px;
}

.system-option .info p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.hidden {
    display: none;
}

.header-with-back {
  display: flex;
  align-items: center;
  gap: 4rem; /* space between arrow and title */
  margin-bottom: 1.5rem;
}

.back-button {
  cursor: pointer;
  font-size: 48px;      /* bigger arrow */
  color: #1976d2;
  user-select: none;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.header-with-back-first {
  display: flex;
  align-items: center;
  gap: 4rem; /* space between arrow and title */
  margin-bottom:0rem;
}