:root {
  --text-color: #404040;
  --brand-blue: #18305d;
  --input-blue: #187ad6;
  --success: #28a745;
  --success-dark: #218838;
  --muted: #6c757d;
  --border: #dee2e6;
  --panel: #f8f9fa;
  --error: #d71920;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: #d4d4d4;
  color: var(--text-color);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.18;
  text-align: center;
}

img {
  display: block;
  max-width: 100%;
}

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.topbar-content {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.customer-service {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

main {
  padding-top: 0;
}

.flow-section {
  width: 100%;
}

.container {
  display: block;
  width: min(100%, 320px);
  margin: 0 auto;
}

.main-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.flow-cardless {
  width: 100%;
}

.brand-logo {
  width: 100%;
  max-width: 100px;
  margin: 50px auto 0;
}

.main-visual-wrap {
  background: #ffffff;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.main-visual {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.msisdn-form,
.pin-entry {
  width: 100%;
}

.msisdn-form-content {
  position: relative;
  top: -50px;
  width: 320px;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.4);
}

.pin-form-content {
  position: relative;
  top: -50px;
  width: 320px;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.4);
}

.label {
  margin: 30px 0 10px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.field {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  text-align: left;
}

.field-label {
  position: absolute;
  top: -8px;
  left: 40px;
  z-index: 3;
  margin: 0;
  padding: 2px 5px;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 5px;
  color: #000000;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
}

.input {
  position: relative;
  display: block;
  width: 100%;
  height: 64px;
  background: #ffffff;
  border: 2px solid var(--input-blue);
  border-radius: 8px;
  padding: 0 45px 0 50px;
  color: var(--text-color);
  font-size: 24px;
  font-style: normal;
  letter-spacing: 2px;
  line-height: 60px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input input {
  width: 100%;
  height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #495057;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 60px;
  padding: 0;
}

.input input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.pin-input {
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.pin-input input {
  text-align: center;
}

.country-code {
  position: absolute;
  top: 3px;
  left: 9px;
  z-index: 2;
  color: var(--input-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 60px;
}

.field-icon {
  position: absolute;
  top: 20px;
  right: 14px;
  display: block;
  color: var(--input-blue);
  transition: color 0.25s ease;
}

.field.is-valid .input {
  border-color: var(--success);
}

.field.is-valid .field-icon,
.field.is-valid .country-code {
  color: var(--success);
}

.field-alert {
  display: none;
  margin-top: 7px;
  color: var(--error);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.confirmation-message {
  background-color: #fff3cd;
  border: 2px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.confirmation-message p {
  margin: 0;
  color: #856404;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.btn {
  position: relative;
  display: flex;
  width: 100%;
  height: 60px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--success);
  border-radius: 8px;
  background-color: var(--success);
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--success-dark);
  border-color: #1e7e34;
}

.btn:disabled {
  background-color: var(--muted);
  border-color: var(--muted);
  opacity: 0.65;
  cursor: default;
}

.btn-label {
  display: block;
  margin-left: -20px;
}

.btn-pin {
  margin-top: 16px;
  font-size: 12px;
}

.msisdn-form-content > .btn,
.pin-form-content > .btn {
  margin-top: 30px;
}

.btn-pt {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 60px;
  pointer-events: none;
}

.btn-pt img {
  position: absolute;
  top: 0;
  right: 10px;
  width: 50px;
  height: 60px;
  border-left: 3px solid #ffffff;
  padding-left: 10px;
}

.arrow-white {
  display: none;
}

.form-valid .arrow-white,
.btn:not(:disabled) .arrow-white {
  display: block;
}

.form-valid .arrow-gray,
.btn:not(:disabled) .arrow-gray {
  display: none;
}

.errortext {
  display: none;
  margin: 9px 0 0;
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.errortext.is-visible {
  display: block;
}

.loader {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.loader.active {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--success);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  margin-top: 10px;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
}

.legal {
  color: #404040;
}

.subscription-legal {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(108, 117, 125, 0.65);
  border-radius: 8px;
  background-color: rgba(108, 117, 125, 0.65);
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.22;
  text-align: center;
}

#end-screen {
  width: 100%;
  padding-top: 40px;
}

#end-screen p {
  margin: 0 0 16px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#end-screen .payment-status-text {
  color: #404040;
  font-size: 14px;
  font-weight: 600;
}

#goToContentBtn.is-disabled {
  cursor: wait;
  opacity: 0.55;
  pointer-events: none;
}

.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 34, 0.76);
  backdrop-filter: blur(8px);
}

.payment-overlay[hidden] {
  display: none;
}

.payment-overlay-panel {
  width: min(360px, 100%);
  padding: 28px 24px;
  color: #071426;
  text-align: center;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.payment-overlay-panel.is-error {
  border-top: 5px solid #d93025;
}

.payment-overlay-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 5px solid #e5edf5;
  border-top-color: #187ad6;
  border-radius: 50%;
  animation: overlay-spin 0.9s linear infinite;
}

.payment-overlay-panel.is-error .payment-overlay-spinner {
  display: none;
}

.payment-overlay h2 {
  margin: 0 0 10px;
  color: #071426;
  font-size: 22px;
  line-height: 1.18;
}

.payment-overlay p {
  margin: 0;
  color: #4b5565;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

@keyframes overlay-spin {
  to {
    transform: rotate(360deg);
  }
}

#operatorSelector {
  width: 100%;
}

#operatorSelector select {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
}

.legal-panel {
  margin-top: 200px;
  padding: 20px;
  background-color: var(--panel);
  border-radius: 10px;
}

.legal-copy {
  max-width: 800px;
  margin: 0 auto;
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.legal-copy p {
  margin: 0 0 15px;
}

.footer-links {
  margin-top: 20px;
  text-align: center;
}

.footer-links a {
  color: #007bff;
  text-decoration: none;
}

.footer-links span {
  display: inline-block;
  margin: 0 20px;
  color: #555555;
}

.faq-section {
  margin-top: 30px;
  padding: 20px;
}

.home-panel-title {
  margin: 15px 0 20px;
  color: #333333;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

details {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--panel);
  color: #222222;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  content: "";
}

details summary span {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  margin: 0;
  padding: 14px 16px;
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
}

.content-section {
  margin-top: 40px;
  padding: 20px;
}

.intro-copy {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #555555;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.home-item-with-image-block {
  max-width: 900px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  text-align: left;
}

.home-item-with-image-block.image-right .image-col {
  order: 2;
}

.home-item-with-image-block.image-right .home-text-block {
  order: 1;
}

.image-col img {
  width: 100%;
  border-radius: 0;
}

.home-text-block h3 {
  margin: 0 0 10px;
  color: #222222;
  font-size: 22px;
  line-height: 1.2;
}

.home-text-block p {
  margin: 0;
  color: #444444;
  font-size: 15px;
  line-height: 1.55;
}

.pulse-animation {
  animation: pulse 1.5s ease-in-out infinite;
}

.pulse-input {
  animation: pulse-input 2s linear infinite;
}

.is-hidden {
  display: none !important;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

@keyframes pulse-input {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 122, 214, 0.55), 0 0 0 0 rgba(24, 122, 214, 0.55);
  }

  40% {
    box-shadow: 0 0 0 28px rgba(24, 122, 214, 0), 0 0 0 0 rgba(24, 122, 214, 0.55);
  }

  80% {
    box-shadow: 0 0 0 28px rgba(24, 122, 214, 0), 0 0 0 18px rgba(24, 122, 214, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(24, 122, 214, 0), 0 0 0 18px rgba(24, 122, 214, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .topbar-content {
    padding: 0 14px;
  }

  .customer-service {
    font-size: 12px;
  }

  .home-item-with-image-block,
  .home-item-with-image-block.image-right {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 420px;
  }

  .home-item-with-image-block.image-right .image-col,
  .home-item-with-image-block.image-right .home-text-block {
    order: initial;
  }

  .home-text-block {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar-content {
    gap: 8px;
  }

  .customer-service {
    font-size: 12px;
  }

  .label {
    font-size: 15px;
  }

  .input,
  .input input {
    font-size: 22px;
  }
}
