/* TravelVisa Main Styles */

:root {
  --primary: #1a5f7a;
  --primary-dark: #124558;
  --secondary: #159895;
  --light-bg: #f8f9fa;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.navbar-brand {
  font-weight: 700;
}

.visa-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.visa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.lang-flags .flag-icon {
  font-size: 1.25em;
}

/* Custom form validation (no native browser popups) */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
  box-shadow: none;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.phone-country option {
  font-size: 0.95rem;
}

/* Apply flow: phone country combobox (matches uk-visum.dk) */
.phone-country-btn {
  position: relative;
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.35;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  cursor: pointer;
  text-align: left;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.phone-country-btn.is-invalid {
  border-color: #dc3545;
}

.phone-country-btn .phone-flag-img {
  display: block;
  width: 22px;
  height: auto;
}

.phone-country-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 1060;
  max-height: min(320px, 60vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
  padding: 0;
}

.phone-country-menu-toolbar {
  flex-shrink: 0;
  padding: 0.4rem 0.5rem 0.45rem;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}

.phone-country-search {
  width: 100%;
}

.phone-country-menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(240px, 48vh);
  overflow-y: auto;
  padding: 0.2rem 0;
}

.phone-country-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #212529;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.phone-country-item:hover,
.phone-country-item:focus {
  background: #f8f9fa;
  outline: none;
}

.phone-flag-img-sm {
  width: 20px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.phone-country-item-dial {
  flex: 0 0 auto;
  min-width: 0;
  font-weight: 600;
}

.phone-country-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #495057;
  font-size: 0.88rem;
}
