* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
  padding-bottom: 80px;
}

.topbar {
  background: #081a35;
  color: #ffffff;
  text-align: center;
  padding: 22px 16px 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
}

.topbar p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #d8e3ff;
}

.content {
  padding: 24px 16px 18px;
  max-width: 1400px;
  margin: 0 auto;
}

.intro {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.intro h2 {
  margin: 0 0 10px;
  color: #081a35;
  font-size: 24px;
}

.intro p {
  margin: 0;
  color: #4c5870;
  line-height: 1.6;
}

.steps-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.steps-header {
  margin-bottom: 18px;
}

.steps-header h2 {
  margin: 0 0 8px;
  color: #081a35;
  font-size: 24px;
}

.steps-header p {
  margin: 0;
  color: #5a667c;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background: #f8fbff;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  padding: 18px;
}

.step-number {
  display: inline-block;
  background: #081a35;
  color: #ffd24d;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 10px;
  color: #081a35;
  font-size: 18px;
  line-height: 1.35;
}

.step-card p {
  margin: 0;
  color: #5a667c;
  font-size: 14px;
  line-height: 1.6;
}

.frames-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.frame-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.frame-title {
  background: #081a35;
  color: #ffffff;
  padding: 12px 14px;
  font-weight: bold;
  font-size: 17px;
}

.frame-description {
  margin: 0;
  padding: 14px 14px 10px;
  color: #5a667c;
  font-size: 14px;
  line-height: 1.5;
}

.frame-preview {
  padding: 0 14px 14px;
}

.large-preview iframe {
  width: 100%;
  height: 85vh;
  min-height: 700px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #ffffff;
}

.frame-actions {
  padding: 0 14px 16px;
}

.open-modal-btn {
  width: 100%;
  border: none;
  background: #ffd24d;
  color: #081a35;
  font-weight: bold;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.open-modal-btn:hover {
  background: #f4c52c;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f274d;
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 50;
}

.footer a {
  background: #ffd24d;
  padding: 10px 14px;
  text-decoration: none;
  color: #081a35;
  font-weight: bold;
  border-radius: 7px;
  font-size: 14px;
}

.footer a:hover {
  background: #ffffff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 30, 0.78);
}

.modal-box {
  position: relative;
  width: calc(100% - 24px);
  height: calc(100vh - 24px);
  margin: 12px auto;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: #081a35;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-actions a {
  color: #081a35;
  background: #ffd24d;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.close-btn {
  border: none;
  background: #ffffff;
  color: #081a35;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-weight: bold;
}

.modal-body {
  flex: 1;
  background: #eef2f8;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .large-preview iframe {
    height: 70vh;
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  .topbar h1 {
    font-size: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .large-preview iframe {
    height: 60vh;
    min-height: 420px;
  }

  .modal-header {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}
.step-label{

background:#f8fbff;

border:1px solid #d8e4f2;

padding:12px;

margin:15px 0;

border-radius:10px;

display:flex;

gap:10px;

align-items:center;

}

.step-number{

background:#081a35;

color:#ffd24d;

padding:6px 10px;

border-radius:20px;

font-weight:bold;

}

.step-text{

font-weight:bold;

color:#081a35;

}