/* ============================================ */
/* SANReN Connect — Global Styles               */
/* ============================================ */

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}

/* ─── Banner ──────────────────────────────── */

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Content Card (Index page) ───────────── */

.content {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* ─── Header ──────────────────────────────── */

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #2b2b2b;
  margin-bottom: 15px;
}

.header-icon {
  background-color: #ff9800;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ─── Typography ──────────────────────────── */

.description {
  margin: 10px 0 15px;
  font-size: 16px;
  color: #333;
}

hr {
  margin: 18px 0;
  border: none;
  border-top: 2px solid #de961d;
}

.sub-description {
  font-size: 15px;
  margin-bottom: 25px;
  color: #333;
}

/* ─── Form ────────────────────────────────── */

.form-box {
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px 30px;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.form-title {
  background: #2684c1;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  padding: 10px 0;
  border-radius: 4px;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 6px;
  text-align: left;
}

input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

button[type="submit"] {
  width: 100%;
  background: #f7a500;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #e09600;
}

.error-message {
  color: red;
  margin-top: 15px;
  font-size: 14px;
}

/* ─── Container Card (Status pages) ───────── */

.container {
  max-width: 900px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  padding: 40px 20px 46px 20px;
  border: 1px solid #f3e9db;
}

.header-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lock-icon {
  color: #f7a232;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  line-height: 1;
}

.header-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0;
}

.orange-divider {
  margin: 22px auto 25px auto;
  border-bottom: 3px solid #f7a232;
  width: 98%;
}

/* ─── Info Boxes (Status pages) ───────────── */

.info-box {
  border: 1.6px solid #ded7cb;
  background: #fff;
  border-radius: 18px;
  padding: 18px 24px;
  margin: 16px 0;
  color: #232325;
  display: block;
}

.info-box ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.info-box ul li {
  margin-bottom: 12px;
  padding-left: 5px;
}

.info-box ul li:last-child {
  margin-bottom: 0;
}

.info-box ul li::marker {
  color: #f7a232;
  font-size: 1.25em;
}

.box-title {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 3px;
}

.box-desc {
  font-size: 1.05em;
}

/* ─── Buttons ─────────────────────────────── */

.button {
  display: inline-block;
  background: #f48024;
  color: #fff;
  padding: 10px 28px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1.12em;
  text-decoration: none;
  margin-top: 36px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #c96c1a;
}

/* ─── Links ───────────────────────────────── */

.link {
  color: #f48024;
  font-weight: 500;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
  color: #c96c1a;
}

/* ─── Balance Page ────────────────────────── */

.balance-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  margin: 36px auto;
  padding: 36px 40px 32px;
}

.balance-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.balance-header-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.balance-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.balance-divider {
  height: 3px;
  background: linear-gradient(90deg, #f7a232, #f7c977);
  border: none;
  margin: 14px 0 20px;
  border-radius: 2px;
}

.balance-status {
  font-size: 15px;
  color: #444;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ─── Info Rows (Balance page) ────────────── */

.info-rows {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 18px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 16px;
}

.info-row-icon.orange {
  background: #fff3e0;
}
.info-row-icon.green {
  background: #e8f5e9;
}
.info-row-icon.red {
  background: #fce4ec;
}

.info-row-icon svg {
  width: 20px;
  height: 20px;
}

.info-row-label {
  flex: 1;
}

.info-row-label .title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.info-row-label .subtitle {
  font-size: 13px;
  color: #888;
  margin: 2px 0 0;
}

.info-row-value {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ─── CoS Badge ───────────────────────────── */

.cos-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: #e3f0fa;
  color: #2684c1;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
}

.cos-badge .info-circle {
  width: 15px;
  height: 15px;
  opacity: 0.55;
}

/* ============================================ */
/* RESPONSIVE — Tablet (≤ 768px)                */
/* ============================================ */

@media (max-width: 768px) {
  .content,
  .container,
  .info-card,
  .form-box,
  .balance-card {
    width: 95% !important;
    margin: 20px auto !important;
    padding: 20px !important;
    box-sizing: border-box;
  }

  .header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .header-area {
    flex-direction: row !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .header-icon {
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .lock-icon {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }

  .info-box {
    padding: 15px !important;
  }

  .info-box ul {
    padding-left: 15px !important;
  }

  .box-desc,
  p,
  span {
    word-wrap: break-word;
    font-size: 15px !important;
  }

  .button,
  button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
  }

  .banner img {
    width: 100% !important;
    height: auto !important;
  }

  .info-row {
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 8px;
  }

  .info-row-value {
    width: 100%;
    text-align: right;
  }
}

/* ============================================ */
/* RESPONSIVE — Small phones (≤ 480px)          */
/* ============================================ */

@media (max-width: 480px) {
  .content,
  .container {
    padding: 15px !important;
  }

  .info-box {
    padding: 12px !important;
  }

  .box-desc {
    font-size: 14px !important;
  }

  .balance-card {
    padding: 18px 14px !important;
  }
}
