
body{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f4f6fa;
}


p, h1, h2{
 margin: 0; 
 padding: 0;
}



header{
  margin: 0px;
  padding: 16px 20px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  border-bottom: 1px solid #e3e8f0;
  box-shadow: 0 1px 3px rgba(31, 41, 55, 0.035);
}
.hlogo{
  margin: 0 auto;
  width: min(250px, 72vw);
  height: 64px;
}
.hlogo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.language-switcher{
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.language-option{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 36px;
  padding: 4px 8px;
  box-sizing: border-box;
  border: 1px solid #d2d9e5;
  border-radius: 999px;
  background: #ffffff;
  color: #526074;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}
.language-option:hover{
  border-color: #2563eb;
  color: #1d4ed8;
}
.language-option.is-active{
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.language-flag{
  display: block;
  width: 22px;
  height: 15px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

main{
  margin: 0px;
  padding: 28px 18px 48px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  background-color: #f4f6fa;
}
.mform{
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  height: auto;
  background-color: transparent;
  padding: 0;
  box-sizing: border-box;
}
.titular{
  font-size: 3rem;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 900;
  color:#00488d;
  text-align: center;
}
.intro{
  margin: 20px 0px;
  font-family: 'Inter', sans-serif;
  font-size: 1.0rem;
  text-align: justify;
  color: #747474;
}

.guest-config{
  box-sizing: border-box;
  min-width: 0;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #d8deea;
  border-radius: 14px;
  background: #f7f9fc;
  font-family: 'Inter', sans-serif;
}
.guest-config-heading{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.guest-config-heading h2{
  color: #26354a;
  font-size: 1.1rem;
  line-height: 1.25;
}
.guest-config-heading p{
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
}
.guest-total{
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #dce9ff;
  color: #174f9c;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.guest-selectors{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guest-selector-field{
  margin: 0;
  min-width: 0;
}
.guest-selector-field select{
  min-width: 0;
  max-width: 100%;
  background-color: #ffffff;
}

.guest-tabs-wrap{
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.guest-tabs{
  display: flex;
  gap: 8px;
  padding: 2px 0 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.guest-tab{
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cad2df;
  border-radius: 999px;
  background: #ffffff;
  color: #526074;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  scroll-snap-align: center;
  white-space: nowrap;
}
.guest-tab:hover{
  border-color: #2563eb;
  color: #1d4ed8;
}
.guest-tab.is-active{
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}
.guest-tab-status{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dce9ff;
  color: #174f9c;
  font-size: 0.7rem;
}
.guest-tab:not(.is-complete) .guest-tab-status{
  display: none;
}
.guest-tab.is-active .guest-tab-status{
  background: #ffffff;
  color: #2563eb;
}

.guest-card{
  box-sizing: border-box;
  min-width: 0;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #d8deea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(34, 51, 84, 0.07);
}
.guest-card-heading{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.guest-kind{
  margin-bottom: 4px;
  color: #2563eb;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guest-card-heading h2{
  color: #26354a;
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
}
.guest-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-button{
  min-width: 0;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  color: #4b5563;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
}
.action-button:hover{
  border-color: #64748b;
  background: #f8fafc;
}
.action-button-danger{
  border-color: #fecaca;
  color: #b42318;
}
.action-button-danger:hover{
  border-color: #ef4444;
  background: #fff5f5;
}
.action-button:disabled{
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #a3a3a3;
  cursor: not-allowed;
}
.titular-notice{
  margin: 12px 0 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eef4ff;
  color: #315a91;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
}
.titular-notice[hidden]{
  display: none;
}
.inheritance-option{
  margin: 14px 0 10px;
}
.inheritance-option[hidden],
.inheritable-fields[hidden]{
  display: none;
}
#addressInheritanceOption[hidden] + #addressFields:not([hidden]){
  margin-top: 18px;
}
.inheritance-toggle{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cddcf4;
  border-radius: 11px;
  background: #f1f6ff;
  color: #315a91;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.4;
  text-transform: none;
}
.inheritance-toggle:hover{
  border-color: #8fb3eb;
  background: #eaf2ff;
}
.inheritance-toggle input{
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  accent-color: #2563eb;
  cursor: pointer;
}
.inheritance-toggle span{
  padding-top: 1px;
}
.privacy-notice{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 20px;
  padding: 14px 16px;
  border: 1px solid #cddcf4;
  border-radius: 12px;
  background: #f1f6ff;
  color: #36516f;
  font-family: 'Inter', sans-serif;
}
.privacy-icon{
  flex: 0 0 auto;
  margin-top: 1px;
  color: #2563eb;
  font-size: 1.35rem;
}
.privacy-notice h2{
  margin-bottom: 4px;
  color: #264b78;
  font-size: 0.85rem;
  line-height: 1.3;
}
.privacy-notice p{
  font-size: 0.78rem;
  line-height: 1.5;
}

.field{
  margin: 8px 0px;
}
.name-fields{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px;
}
.name-fields .field{
  min-width: 0;
}
.name-length-counter{
  margin: -2px 2px 10px;
  color: #64748b;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}
.name-length-counter.is-limit{
  color: #b42318;
}
.address-locality-fields{
  display: grid;
  grid-template-columns: minmax(112px, 2fr) minmax(0, 3fr);
  gap: 12px;
}
.address-locality-fields .field{
  min-width: 0;
}
label {
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color:#6d6d6d;
  display: block;
}
input,
select {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  background: #c0d5ff;
  width: 100%;
  box-sizing: border-box;
}
input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
}

.phone-control{
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-width: 0;
}
.phone-country-picker{
  position: relative;
  min-width: 0;
}
.phone-country-button{
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  height: 100%;
  padding: 10px 9px 10px 12px;
  border: 1px solid #d1d5db;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #c0d5ff;
  color: #26354a;
  box-sizing: border-box;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.phone-country-button:hover,
.phone-country-button[aria-expanded="true"]{
  background: #ffffff;
  border-color: #2563eb;
}
.phone-country-button:focus-visible{
  position: relative;
  z-index: 1;
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.phone-country-flag{
  flex: 0 0 auto;
  margin-right: 7px;
  width: 26px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}
.phone-country-dial{
  flex: 1 1 auto;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.phone-country-arrow{
  flex: 0 0 auto;
  color: #64748b;
  font-size: 1.15rem;
  transition: transform 0.18s ease;
}
.phone-country-button[aria-expanded="true"] .phone-country-arrow{
  transform: rotate(180deg);
}
.country-button{
  min-height: 48px;
  border-right: 1px solid #d1d5db;
  border-radius: 10px;
}
.country-button-name{
  flex: 1 1 auto;
  overflow: hidden;
  color: #26354a;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-control > input{
  min-width: 0;
  border-radius: 0 10px 10px 0;
}
.phone-control > input:focus{
  position: relative;
  z-index: 1;
}
.phone-country-menu{
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 56px));
  padding: 8px;
  border: 1px solid #d8deea;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(30, 48, 78, 0.2);
  box-sizing: border-box;
}
.phone-country-menu[hidden]{
  display: none;
}
.phone-country-search-wrap{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
}
.phone-country-search-wrap:focus-within{
  border-color: #2563eb;
  background: #ffffff;
}
.phone-country-search-wrap .material-symbols-outlined{
  color: #64748b;
  font-size: 1.2rem;
}
.phone-country-search-wrap input{
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
}
.phone-country-search-wrap input:focus{
  background: transparent;
}
.phone-country-list{
  max-height: 250px;
  margin-top: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.phone-country-option{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  box-sizing: border-box;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
}
.country-option{
  grid-template-columns: 28px minmax(0, 1fr);
}
.phone-country-option:hover,
.phone-country-option:focus-visible{
  outline: none;
  background: #edf4ff;
}
.phone-country-option[aria-selected="true"]{
  background: #dce9ff;
  color: #174f9c;
}
.phone-country-option-flag{
  display: block;
  width: 26px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}
.phone-country-option-name{
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-country-option-dial{
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.phone-country-empty{
  padding: 18px 10px;
  color: #64748b;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: center;
}



.btn {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
  border: none;
  background: #2563eb;
  color: white;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background: #1d4ed8;
}







@media (max-width: 600px){
  body.phone-menu-open{
    overflow: hidden;
  }
  body.phone-menu-open::before{
    content: '';
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
  }
  .hlogo{
    width: min(220px, 72vw);
    height: 56px;
  }
  .language-switcher{
    justify-content: center;
    margin-bottom: 12px;
  }
  .language-option{
    min-height: 38px;
  }
  .mform{
    padding: 0;
  }
  .titular{
    font-size: 2.1rem;
    line-height: 1.05;
  }
  .intro{
    margin: 14px 0 18px;
    text-align: left;
    line-height: 1.45;
  }
  .guest-config{
    padding: 15px;
  }
  .guest-config-heading{
    align-items: center;
  }
  .guest-config-heading p{
    display: none;
  }
  .guest-selectors{
    gap: 9px;
  }
  .guest-selector-field select{
    min-height: 48px;
    padding: 10px 11px;
    font-size: 0.92rem;
  }
  .guest-tabs-wrap{
    margin: 0;
    padding: 0;
  }
  .guest-tab{
    min-height: 46px;
    padding-inline: 15px;
  }
  .guest-card{
    padding: 16px 14px;
  }
  .guest-card-heading{
    display: block;
  }
  .guest-actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }
  .action-button{
    min-height: 42px;
    padding: 8px;
  }
  input,
  select{
    min-height: 48px;
  }
  .phone-country-menu{
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;
    width: calc(100vw - 28px);
    max-width: 420px;
    max-height: min(70vh, 520px);
    transform: translate(-50%, -50%);
  }
  .phone-country-list{
    max-height: calc(min(70vh, 520px) - 74px);
  }
  .btn{
    min-height: 50px;
  }
  main{
    padding: 20px 14px 38px;
  }
}

@media (max-width: 420px){
  .guest-selectors{
    grid-template-columns: minmax(0, 1fr);
  }
  .name-fields{
    gap: 8px;
  }
  .address-locality-fields{
    grid-template-columns: minmax(104px, 2fr) minmax(0, 3fr);
    gap: 8px;
  }
}
