:root {
  --main-color: #2E7D32;
  --light-bg: #f8f9fa;
  --card-bg: #ffffff;
  --text-dark: #212121;
  --text-light: #616161;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  position: relative;
  transition: transform 0.3s ease;
}

header {
  background: var(--main-color);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  z-index: 1000;
  margin-bottom: 24px;
}

#menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  margin-right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header h1 {
  font-size: 1.3rem;
  font-weight: 600;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-dark);
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.input-group input:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.btn {
  background: var(--main-color);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  display: block;
  text-align: center;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

.btn:hover {
  opacity: 0.95;
}

.tariff-icons {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 24px;
  gap: 12px;
}

.tariff-icon {
  background: var(--light-bg);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  width: 100%;
  padding: 16px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tariff-icon:hover {
  border-color: var(--main-color);
  background: #f0f9f0;
}

.tariff-icon i {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.tariff-icon.active {
  border-color: var(--main-color);
  background: #e8f5e9;
  font-weight: 600;
}

.details-btn {
  background: #e0f2e9;
  border: none;
  color: var(--main-color);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: fit-content;
  margin: 16px 0;
}

.details-btn i {
  font-size: 18px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 3000;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #757575;
}

.modal-option {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.modal-option:hover {
  color: var(--main-color);
}

.modal-option:last-child {
  border-bottom: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 0 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--main-color);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.child-count {
  display: none;
  margin-top: 16px;
}

.child-count.show {
  display: block;
}

.child-count .label {
  margin-bottom: 8px;
  font-weight: 500;
}

.child-count .options {
  display: flex;
  gap: 12px;
}

.child-count .option {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  background: white;
}

.child-count .option.active {
  background: var(--main-color);
  color: white;
  border-color: var(--main-color);
}

.textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  margin-top: 16px;
  min-height: 80px;
  resize: vertical;
}

.textarea:focus {
  outline: none;
  border-color: var(--main-color);
}

#sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: left 0.3s ease;
  padding-top: 70px;
}

#sidebar.open {
  left: 0;
}

#sidebar a {
  display: block;
  padding: 16px 24px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

#sidebar a:hover {
  background: #f0f8ff;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  display: none;
}

#overlay.active {
  display: block;
}

#error {
  display: none;
  text-align: center;
  color: #d32f2f;
  padding: 30px;
  font-size: 1.1rem;
  background: #fff;
  margin: 20px;
  border-radius: 10px;
}