/* RESET AND BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

:root {
  --brand-blue: #1C068C;
  --brand-orange: #D18219;
  --white-color: #ffffff;
  --gray-bg: #f8f9fa;
  --gray-border: #ccc;
}

body {
  font-family: 'Instrument Sans', 'Segoe UI', sans-serif;
  background-color: var(--gray-bg);
  color: #333;
}

body.modal-open {
  overflow: hidden;
}

/* PLANS CARDS */
#packages {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

#packages h2 {
  font-size: 32px;
  color: var(--brand-blue);
  margin-bottom: 40px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.pricing-card {
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  transition: transform 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--brand-blue);
}

.pricing-card .price {
  font-size: 18px;
  color: var(--brand-orange);
  margin-bottom: 15px;
  font-weight: 600;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  color: #333;
}

.pricing-card ul li::before {
  content: '✔';
  color: var(--brand-orange);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* PICK PLAN BUTTON */
.subscribe-btn {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--white-color);
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.subscribe-btn:hover {
  background: var(--brand-orange);
}

.subscribe-btn::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: absolute;
  right: 20px;
  font-weight: bold;
  color: var(--white-color);
  font-size: 20px;
  transform: translateX(-10px);
}

.subscribe-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* MODAL STYLES */
.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding-top: 40px;
}

.modal-content {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  margin: 0 auto;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-card h2 {
  margin-bottom: 20px;
  color: var(--brand-blue);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-border);
  font-size: 16px;
}

/* FORM BUTTONS */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

button[type="submit"],
.cancel-btn {
  padding: 15px 0px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  width: 45%;
  transition: background 0.3s ease;
}

button[type="submit"] {
  background: var(--brand-orange);
  color: var(--white-color);
}

button[type="submit"]:hover {
  background: #a55d10;
}

.cancel-btn {
  background: #ccc;
  color: #333;
}

.cancel-btn:hover {
  background: #aaa;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  #packages h2 {
    font-size: 24px;
  }

  .pricing-card {
    padding: 24px 16px;
  }

  .pricing-card h3 {
    font-size: 20px;
  }

  .pricing-card ul li {
    font-size: 14px;
  }

  .pricing-card button {
    font-size: 15px;
  }

  .form-actions {
    flex-direction: row;
    justify-content: space-between;
  }
}
