/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: #333;
}

.container {
  min-height: 100vh;
  padding-left:0px
}

/* Sidebar styles */
.logoVNeDOc {
  width: 180px;
  margin-bottom: 48px;
}
.logoVNeDOcMobile {
  width: 180px;
  margin-bottom: 28px;
  display: block;
}
.sidebar {
  max-width: 320px;
  background-color: white;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: none;
  position: fixed;
  height: 100vh;
  left: 0;
}

.timeline {
  position: relative;
  border-left: 1px solid #e5e7eb;
  margin-left: 16px;
  color: #6b7280;
  list-style: none;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
}

.timeline-icon {
  position: absolute;
  left: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #dbeafe;
  border: 4px solid white;
}
.timeline-icon svg {
  width: 12px;
}

.timeline-icon.active {
  background-color: #3b82f6;
}

.timeline-title {
  font-weight: 500;
  line-height: 1.25;
  font-size: 18px;
}

.timeline-subtitle {
  font-size: 0.875rem;
}

.active-step {
  color: #3b82f6;
  font-weight: 500;
}

/* Main content styles */
.content {
  flex: 1;
  background-color: #f5f7f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.content-wrapper {
  max-width: 768px;
  margin: 0 auto;
}

.section-wrapper {
  padding: 40px 16px;
}

/* Package styles */
.section-title {
  margin-bottom: 16px;
  border-left: 4px solid #0A8EED;
  padding-left: 12px;
  font-size: 18px;
  font-weight: 700;
}

.package-table {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 48px;
  background-color: #0A8EED;
}

.package-header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.package-body {
  background-color: white;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.package-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.package-row-label {
  font-size: 16px;
  font-weight: 600;
}

.package-row-value {
  font-weight: 500;
  color: #0A8EED;
  font-size: 16px;
}

/* Form styles */
.form-container {
  width: 100%;
  max-width: 768px;
  background-color: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-size: 17px;
}

.form-section {
  position: relative;
  margin-bottom: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
}

.form-section-title {
  position: absolute;
  top: -14px;
  background-color: white;
  font-size: 17px;
  font-weight: 600;
}

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

.form-row .form-group {
  flex: 1;
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: rgba(60, 60, 61, 1);
  margin-bottom: 4px;
}

.required::after {
  content: "*";
  color: #ef4444;
}

.icon-input {
  position: absolute;
  top: 41px;
  left: 9px;
  height: 20px;
  pointer-events: none;
}

.form-input-wrapper {
  position: relative;
}

.form-input-wrapper .icon-input {
  /* Trong wrapper chỉ có input (không có label), đặt icon đè lên input. */
  top: 13px;
  left: 9px;
  pointer-events: auto;
  cursor: pointer;
}

/* Flatpickr popup cần nằm trên .form-section (overflow/border). */
.flatpickr-calendar {
  z-index: 9999;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  min-height: 46px;
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out;
  padding-left: 33px;
}

.form-input[type="date"],
.form-input[type="time"] {
  cursor: pointer;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}
.form-input::placeholder {
  color: rgba(135, 134, 138, 1);
  font-size: 14px;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.error-message.visible {
  display: block;
}

.form-checkbox {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.btn {
  padding: 12px 0px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 135px;
}

.btn-outline {
  border: 1px solid #0A8EED;
  color: #0A8EED;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap:6px
}

.btn-outline:hover {
  background-color: #eff6ff;
}

.btn-primary {
  background-color: #0A8EED;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-full {
  width: 100%;
}

/* Success page styles */
.success-page {
  display: none;
  padding: 40px 16px;
  text-align: center;
}

.success-container {
  width: 100%;
  background-color: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}


.success-title {
  display: inline-block;
  margin: 0 auto 16px;
  width: 320px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 16px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

.success-message {
  margin-bottom: 16px;
  font-size: 16px;
}

.success-contact {
  margin-bottom: 16px;
  color: #0A8EED;
  text-align: center;
}

.info-label {
  font-size: 14px;
  color: #6b7280;
}

.info-value {
  font-weight: 500;
  margin-bottom: 12px;
}
.read-condition {
  display: flex;
  align-items: center;
  font-size: 14px;
}
.icon-sidebar {
  position: absolute;
  bottom: 10px;
  left: 0px;
  width: 320px;
}
.mx-auto {
  margin: 0 auto;
}
.text-center {
  text-align: center;
}
@media (min-width: 860px) {
  .container {
    padding-left: 320px;
  }
  .sidebar {
    display: block;
  }
  .form-container {
    padding: 24px;
  }
  .form-section-title {
    font-size: 20px;
    font-weight: 600;
    top:-20px
  }
  .package-header {
    font-size: 18px;
  }
  .package-row-label {
    font-size: 18px;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .logoVNeDOcMobile {
    display: none;
  }
  .package-row-value {
    font-size: 18px;
  }
  .success-container {
    padding: 60px;
  }
}