/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #1a3456;
  background-image: linear-gradient(180deg, #1d395e 0%, #152943 100%);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.site-header {
  padding: 24px 36px;
  display: flex;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.coat-of-arms {
  width: 52px;
  height: 68px;
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-title-main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: uppercase;
}

.header-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #d1d9e6;
  letter-spacing: 0.3px;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Main Container */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px;
}

/* Title */
.portal-title-wrapper {
  margin-top: 10px;
  margin-bottom: 34px;
  text-align: center;
}

.portal-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4ea3e6;
}

.portal-title .highlight {
  color: #ffffff;
  font-weight: 900;
}

/* Sections Wrapper */
.view-section {
  width: 100%;
  max-width: 620px;
  transition: all 0.3s ease;
}

/* Screen 1: Cards Section */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.portal-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  user-select: none;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

.portal-card:active {
  transform: translateY(0);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 15px;
}

.card-title {
  font-size: 18.5px;
  font-weight: 700;
  color: #ffffff;
}

.card-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.35;
}

.card-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon {
  width: 38px;
  height: 38px;
  stroke: #ffffff;
  fill: none;
}

/* Card Themes */
.card-primary {
  background: linear-gradient(135deg, #be2335 0%, #a8192a 100%);
}

.card-navy {
  background: #132238;
}

.card-steel {
  background: #3d526e;
}

/* Form Container (Screen 2) */
.form-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  color: #1a2c42;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.form-header {
  background: linear-gradient(90deg, #be2335 0%, #991523 100%);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.form-header-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.form-help-icon {
  width: 22px;
  height: 22px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.9;
}

.form-body {
  padding: 34px 34px 44px 34px;
}

/* Form Groups */
.form-group {
  margin-bottom: 28px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-col {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #183354;
  margin-bottom: 8px;
}

.input-with-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bubble-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #183354;
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #a4b4cb;
  padding: 8px 0;
  font-size: 17px;
  color: #162a44;
  background: transparent;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: #b0bec5;
  font-size: 14px;
}

.form-input:focus {
  border-bottom-color: #be2335;
}

/* Field Error */
.error-msg {
  color: #be2335;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  display: none;
}

.has-error .form-input {
  border-bottom-color: #be2335;
}

.has-error .error-msg {
  display: block;
}

/* Buttons */
.form-actions {
  margin-top: 32px;
}

.btn-submit {
  background: #9b1c28;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover {
  background: #841620;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 28, 48, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 3px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1a2c42;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: #183558;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.modal-icon {
  width: 26px;
  height: 26px;
  fill: #58a6ff;
  flex-shrink: 0;
}

.modal-body {
  padding: 24px 26px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.review-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #183354;
  margin-bottom: 5px;
}

.review-value {
  font-size: 16px;
  font-weight: 600;
  color: #2b394e;
  word-break: break-word;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.btn-confirm {
  background: #be2335;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 10px 24px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm:hover {
  background: #a51c2c;
}

.btn-cancel {
  background: #8e5454;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 10px 24px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #7a4646;
}

/* Step 3: Verification / Waiting */
.step-container {
  display: none;
}

/* Redesigned Official Government Waiting & Verification Boxes */
.status-card-box {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  color: #1a2c42;
  animation: fadeIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.box-header {
  background: #183558;
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #be2335;
}

.box-header-title {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.box-header-security {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #93c5fd;
  font-weight: 600;
}

.box-lock-icon {
  width: 15px;
  height: 15px;
  fill: #60a5fa;
}

.box-header-icon {
  width: 24px;
  height: 24px;
  stroke: #58a6ff;
}

.box-body {
  padding: 38px 30px;
  text-align: center;
}

/* Official Circular Dual-Pulse Spinner */
.official-spinner-wrapper {
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.official-spinner {
  width: 58px;
  height: 58px;
  border: 4px solid #e2e8f0;
  border-top-color: #be2335;
  border-right-color: #183558;
  border-radius: 50%;
  animation: officialSpin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 4px 15px rgba(190, 35, 53, 0.15);
}

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

.status-title {
  font-size: 21px;
  font-weight: 700;
  color: #183354;
  margin-bottom: 12px;
}

.status-desc {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto 24px auto;
}

/* Processing Steps Timeline */
.processing-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  margin: 0 auto 24px auto;
}

.proc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-done .step-badge {
  background: #22c55e;
  color: #ffffff;
}

.step-pending .step-badge {
  background: #e2e8f0;
  color: #94a3b8;
}

.step-badge-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fecdd3;
  border-top-color: #be2335;
  animation: spin 0.8s linear infinite;
}

.step-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.step-done .step-label {
  color: #15803d;
}

.step-active .step-label {
  color: #be2335;
  font-weight: 700;
}

.proc-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 10px 18px 10px;
}

.proc-step-line.done {
  background: #22c55e;
}

.processing-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
}

/* Push Notification Animation & Mockup */
.push-animation-wrapper {
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 240px;
  background: #0f172a;
  border: 3px solid #334155;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.phone-screen {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 12px 10px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.push-notification-banner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: pulseCard 2s infinite ease-in-out;
}

@keyframes pulseCard {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(190, 35, 53, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(190, 35, 53, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(190, 35, 53, 0); }
}

.push-app-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.push-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #be2335;
  margin-bottom: 2px;
}

.push-banner-text {
  font-size: 11.5px;
  color: #475569;
}

.push-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 16px 0;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.push-note {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 10px;
}

/* Code Input Box */
.code-icon-badge {
  width: 60px;
  height: 60px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
}

/* Refined Code Confirmation Card */
.code-card-body {
  padding: 32px 28px !important;
  text-align: center;
}

.code-icon-badge {
  width: 54px;
  height: 54px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.code-icon-badge svg {
  width: 26px;
  height: 26px;
}

.code-title {
  font-size: 18.5px;
  font-weight: 700;
  color: #183354;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.code-subtitle {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto 20px auto;
}

.code-input-wrapper {
  max-width: 240px;
  margin: 0 auto;
}

.sms-input {
  width: 100%;
  height: 48px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  padding: 0 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sms-input:placeholder-shown {
  letter-spacing: normal;
  font-size: 14.5px;
  font-weight: 400;
}

.sms-input::placeholder {
  color: #94a3b8;
  font-size: 14.5px;
  letter-spacing: normal;
  font-weight: 400;
}

.sms-input:focus {
  border-color: #be2335;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(190, 35, 53, 0.12);
}

.code-error-msg {
  color: #be2335;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
  text-align: center;
}

.code-action-wrap {
  margin-top: 18px;
}

.btn-code-submit {
  width: 100%;
  max-width: 240px;
  height: 44px;
  background: #be2335;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(190, 35, 53, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-code-submit:hover {
  background: #a81c2c;
  box-shadow: 0 4px 14px rgba(190, 35, 53, 0.3);
  transform: translateY(-1px);
}

.btn-code-submit:active {
  transform: translateY(0);
}

.btn-code-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Beautiful Resend Block - Zero ugly browser buttons */
.resend-wrapper {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.resend-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.resend-prompt {
  color: #64748b;
}

.resend-action-link {
  all: unset !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #be2335 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.15s ease !important;
}

.resend-action-link:hover {
  color: #991b1b !important;
}

.resend-bottom-row {
  margin-top: 2px;
}

.resend-timer-pill {
  all: unset !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 4px 14px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: not-allowed !important;
  transition: all 0.2s ease !important;
}

.resend-timer-pill:not(:disabled) {
  background: #fef2f2 !important;
  border-color: #fecdd3 !important;
  color: #be2335 !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}

.resend-timer-pill:not(:disabled):hover {
  background: #fee2e2 !important;
}

.timer-svg-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.timer-digits {
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #334155;
}

.resend-timer-pill:not(:disabled) .timer-digits {
  color: #be2335;
}

.resend-success-chip {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 16px;
  animation: fadeIn 0.3s ease;
}

.chat-icon-btn {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-icon-btn:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

/* Success Screen */
.success-icon-badge {
  width: 70px;
  height: 70px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.success-icon-badge svg {
  width: 40px;
  height: 40px;
}

/* Status Notice Box (Screenshot 3 Match) */
.status-notice-box {
  background: #1b2f48;
  border-bottom: 2px solid #be2335;
  padding: 18px 24px;
  color: #ffffff;
}

.notice-flex {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.notice-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #be2335;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-texts p {
  font-size: 13.5px;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.notice-texts strong {
  color: #ffffff;
}

.btn-notice-action {
  width: 100%;
  background: #be2335;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.btn-notice-action:hover {
  background: #a51c2c;
}

/* Problem Form Phone Prefix & Select (Screenshot 4 Match) */
.phone-prefix-wrap {
  display: flex;
  align-items: baseline;
  width: 100%;
  border-bottom: 1.5px solid #d1d5db;
  transition: border-color 0.2s;
}

.phone-prefix-wrap:focus-within {
  border-bottom-color: #be2335;
}

.phone-prefix {
  font-size: 16px;
  font-weight: 600;
  color: #183354;
  margin-right: 6px;
  user-select: none;
}

.phone-prefixed {
  border-bottom: none !important;
  padding-left: 0 !important;
  flex: 1;
}

.phone-prefixed:focus {
  border-bottom: none !important;
  box-shadow: none !important;
}

.select-wrapper {
  position: relative;
  width: 100%;
  border-bottom: 1.5px solid #d1d5db;
}

.form-select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 24px 8px 0;
  font-size: 15px;
  color: #183354;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #64748b;
  pointer-events: none;
}

/* Live Chat Support Widget (Bottom-Left on all pages) */
.live-chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chat-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #183558;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 11px 18px;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-toggle-btn:hover {
  background: #204572;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.chat-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-icon svg {
  width: 20px;
  height: 20px;
  stroke: #60a5fa;
}

.chat-toggle-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.chat-online-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.8s infinite;
}

.chat-unread-badge {
  background: #be2335;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Chat Popup Window */
.chat-window {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 350px;
  height: 480px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(24, 53, 88, 0.15);
  animation: chatSlideUp 0.25s ease-out;
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  background: #183558;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #be2335;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  background: #0e2038;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border: 2px solid #183558;
  border-radius: 50%;
}

.chat-header-name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.chat-header-status {
  font-size: 11.5px;
  color: #93c5fd;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  display: flex;
  flex-direction: column;
}

.msg-operator {
  align-self: flex-start;
}

.msg-operator .msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 2px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.msg-user {
  align-self: flex-end;
}

.msg-user .msg-bubble {
  background: #183558;
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.msg-time {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 3px;
  padding: 0 4px;
}

.msg-user .msg-time {
  text-align: right;
}

.chat-footer {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.chat-footer form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13.5px;
  outline: none;
  color: #1e293b;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: #183558;
}

.chat-send-btn {
  background: #be2335;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: #a51c2c;
}

.chat-send-btn svg {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header {
    padding: 16px 20px;
  }
  .header-title-main {
    font-size: 15px;
  }
  .portal-title {
    font-size: 26px;
  }
  .portal-card {
    padding: 16px 18px;
  }
  .card-title {
    font-size: 16px;
  }
  .card-desc {
    font-size: 12.5px;
  }
  .form-body {
    padding: 24px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .live-chat-widget {
    bottom: 16px;
    left: 16px;
  }
  .chat-window {
    width: calc(100vw - 32px);
    height: 420px;
  }
}
