:root {
  --ab-bg-dark: #122938;
  --ab-accent: #95c11f;
  --ab-text: #113247;
  --ab-card-bg: #ffffff;
}

.ab-card {
  background: var(--ab-card-bg);
  border-radius: 16px;
  padding: 32px;
  color: var(--ab-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  margin-left: 15px;
}

.ab-card .template-logo {
  display: block;
  margin: 0 auto 16px auto;
  width: 200px;
}

.ab-card fieldset {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ab-card .form-group {
  margin-bottom: 0;
}

.ab-card .form-control {
  background: #ffffff;
  color: var(--ab-text);
  border: 2px solid #5b53a6;
  border-radius: 12px;
  height: 48px;
  padding: 10px 14px;
  box-shadow: none;
}

.ab-card .form-control:focus {
  border-color: var(--ab-accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(149, 193, 31, 0.18);
}

.ab-card #registrarme.btn {
  background: var(--ab-accent);
  border: none;
  height: 56px;
  border-radius: 40px;
  font-weight: 900;
}

.ab-card .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ab-accent);
  border: 2px solid #5b53a6;
  background: #ffffff;
  border-radius: 4px;
}

.ab-card .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(91, 83, 166, 0.18);
  border-color: #5b53a6;
}

.ab-card .form-check-input:checked {
  background-color: var(--ab-accent);
  border-color: var(--ab-accent);
}

.ab-card .form-check-label {
  color: var(--ab-text);
}

.ab-card .form-check-label a {
  color: var(--ab-accent) !important;
}

.combined-country-mobile {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto auto;
  gap: 0;
}

.country-label {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 6px;
}

.mobile-label {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 6px;
}

.country-input {
  grid-column: 1;
  grid-row: 2;
  border-radius: 12px 0 0 12px;
  border-right: none;
}

.mobile-input {
  grid-column: 2;
  grid-row: 2;
  border-radius: 0 12px 12px 0;
}

.ab-card a.btn.btn-outline-primary {
  border: 2px solid #c8d3da;
  color: var(--ab-text);
  background: transparent;
  border-radius: 12px;
  font-weight: 700;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ab-card a.btn.btn-outline-primary:hover {
  background: #eef4f7;
}

.ab-card .btn-primary {
  background: #95c11f;
  border: 2px solid #95c11f;
  color: #ffffff;
}

.ab-card .btn-primary:hover {
  background: #7ab018;
  border-color: #7ab018;
}

.ab-card .btn-outline-primary {
  border: 2px solid #95c11f;
  color: #95c11f;
  background: transparent;
}

.ab-card .btn-outline-primary:hover {
  background: #95c11f;
  color: #ffffff;
}

.inline-alert {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px 14px;
  border-left: 4px solid #6c757d;
  background: #ffffff;
  color: var(--ab-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

.inline-alert.alert-success {
  border-left-color: #198754;
}

.inline-alert.alert-danger {
  border-left-color: #dc3545;
}

.inline-alert.alert-info {
  border-left-color: #0d6efd;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ab-text);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.pwd-toggle:focus {
  outline: none;
}

.pwd-toggle i {
  font-size: 16px;
}

.pwd-input {
  padding-right: 40px !important;
}

.pwd-popover {
  position: absolute;
  z-index: 2000;
  background: #ffffff;
  color: var(--ab-text);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  width: 320px;
  max-width: calc(100vw - 40px);
  border: 1px solid #e6edf2;
}

.pwd-popover .title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ab-text);
}

.pwd-popover .criteria {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pwd-popover .criteria li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}

.pwd-popover .icon {
  width: 18px;
  text-align: center;
}

.pwd-ok {
  color: #198754;
}

.pwd-bad {
  color: #dc3545;
}

.pwd-neutral {
  color: #6c757d;
}

.pwd-popover .arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
}

.pwd-popover.arrow-left .arrow {
  left: -6px;
  top: 16px;
}

.pwd-popover.arrow-right .arrow {
  right: -6px;
  top: 16px;
  transform: rotate(225deg);
  border-left: 0;
  border-top: 0;
  border-right: 1px solid #e6edf2;
  border-bottom: 1px solid #e6edf2;
  background: #ffffff;
}

.pwd-popover.arrow-bottom .arrow {
  bottom: -6px;
  left: calc(50% - 6px);
  border-right: 1px solid #e6edf2;
  border-bottom: 1px solid #e6edf2;
}

.ab-card .copyright {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: #617889;
}

#countdown-number {
  font-size: 48px;
  font-weight: 900;
  color: #95c11f;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.ab-card #registrarme-modal.btn {
  background: var(--ab-accent);
  border: none;
  height: 56px;
  border-radius: 40px;
  font-weight: 900;
}

.ud-hero-content {
  text-align: left !important;
}

.ud-hero-title {
  text-align: left !important;
}

.ud-hero-buttons {
  text-align: left !important;
}

@media (max-width: 992px) {
  .ab-card {
    height: auto;
    max-height: none;
  }
}

/* Custom Country Dropdown with Flags */
.country-phone-wrapper {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 2px solid #5b53a6;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.2s ease;
  position: relative;
}

.country-phone-wrapper:focus-within {
  border-color: var(--ab-accent);
  box-shadow: 0 0 0 4px rgba(149, 193, 31, 0.18);
}

.custom-country-dropdown {
  position: relative;
  min-width: 140px;
  flex-shrink: 0;
  border-right: 1px solid #e6edf2;
}

.country-dropdown-toggle {
  width: 100%;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ab-text);
  font-size: 14px;
  font-weight: 500;
}

.country-dropdown-toggle:hover {
  background: rgba(149, 193, 31, 0.03);
}

.country-dropdown-toggle:focus {
  outline: none;
  background: rgba(149, 193, 31, 0.05);
}

.country-dropdown-toggle.active {
  background: rgba(149, 193, 31, 0.05);
}

.country-flag-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  flex-shrink: 0;
}

.country-flag-display img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.country-code-display {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-dropdown-toggle svg {
  flex-shrink: 0;
  color: #617889;
  transition: transform 0.2s ease;
}

.country-dropdown-toggle.active svg {
  transform: rotate(180deg);
}

.country-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -2px;
  width: calc(100% + 4px);
  min-width: 280px;
  max-height: 320px;
  background: #ffffff;
  border: 2px solid #5b53a6;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.country-dropdown-menu.show {
  display: flex;
}

.country-search-wrapper {
  padding: 12px;
  border-bottom: 1px solid #e6edf2;
  flex-shrink: 0;
}

.country-search {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #c8d3da;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ab-text);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.country-search:focus {
  border-color: var(--ab-accent);
  box-shadow: 0 0 0 3px rgba(149, 193, 31, 0.12);
}

.country-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.country-list::-webkit-scrollbar {
  width: 6px;
}

.country-list::-webkit-scrollbar-track {
  background: #f5f8fa;
  border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb {
  background: #c8d3da;
  border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
  background: #95c11f;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
  color: var(--ab-text);
  font-size: 14px;
}

.country-option:hover {
  background: #f5f8fa;
}

.country-option.selected {
  background: rgba(149, 193, 31, 0.1);
  color: var(--ab-accent);
  font-weight: 600;
}

.country-option-flag {
  width: 24px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-option-flag img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.country-option-code {
  font-weight: 500;
  min-width: 60px;
}

.country-option-name {
  flex: 1;
  color: #617889;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-phone-wrapper .form-control {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0 10px 10px 0;
  height: 48px;
  padding: 10px 14px;
  background: transparent;
  box-shadow: none;
}

.country-phone-wrapper .form-control:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

/* Validation styles for custom dropdown */
.country-phone-wrapper.is-invalid {
  border-color: #dc3545;
}

.country-phone-wrapper.is-invalid:focus-within {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18);
}

/* Style for phone input when country wrapper is invalid */
.country-phone-wrapper.is-invalid .form-control {
  background-color: #fff;
}

/* Validation styles for form controls */
.ab-card .form-control.is-invalid {
  border-color: #dc3545;
  background-color: #fff;
}

.ab-card .form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18);
}

.ab-card .form-check-input.is-invalid {
  border-color: #dc3545;
}

.ab-card .form-check-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18);
}

/* No results message */
.country-list-empty {
  padding: 24px 12px;
  text-align: center;
  color: #617889;
  font-size: 14px;
}

@media (max-width: 576px) {
  .country-phone-wrapper {
    flex-direction: column;
  }
  
  .custom-country-dropdown {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e6edf2;
  }
  
  .country-dropdown-menu {
    min-width: 100%;
  }
}
