@import url("./variables.css");

body{
  margin: 0;
  background: var(--background-color);
}

h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  text-decoration: underline;
  text-align: center;
  font-size: 50px;
  margin-bottom: 32px;
}

.container {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  align-items: stretch;
  gap: 28px;
}

.different-plan {
  flex: 1 1 250px;
  background-color: var(--surface-2-color);
  border-radius: 12px;
  padding: 35px;
  max-width: 300px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.button {
  display: inline-block;
  border-radius: var(--radius-sm);
  text-decoration: none;
  padding: 8px 10px;
  transition: all 0.3s ease;
  background-color: var(--surface-2-color);
  box-shadow: 2px 2px 4px rgba(82, 74, 74, 0.573);
}

.button:hover {
  background-color: var(--primary-color);
  color: var(--primary-contrast);
  box-shadow: 2px 2px 10px rgb(86, 79, 79);
  transform: translateY(-2px);
}

.different-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .different-plan {
    flex-direction: column;
    align-items: center;
  }
}
/* Scoped list styles for component plans and similar elements */
.different-plan li {
  padding: 8px;
  text-align: left;
  font-family: "PT Serif", serif;
  font-size: 25px;
  font-weight: 400;
}

/* Contact info lists should be compact */
.contact-info ul li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-muted);
}
h2 {
  margin-bottom: 10px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-weight: 800;
  font-size: 30px;
}

/* Centering wrapper */
.loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--background-color);
}

/* Spinner styles */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 10px solid var(--border-color);
  border-top: 10px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation keyframes */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive scaling */
@media (max-width: 600px) {
  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
  }
}

.glow-btn {
  padding: 12px 24px;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--accent-color);
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.glow-btn:hover {
  box-shadow: 0 0 10px #d5b40b, 0 0 20px #ec5e06, 0 0 30px #e50808;
  transform: translateY(-2px);
}

/* Contact form styles (kept in main css so components share theme) */
.contact-wrap {
  max-width: 920px;
  margin: 24px auto;
  background: linear-gradient(180deg, var(--surface-color), var(--surface-2-color));
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px var(--shadow-color);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.contact-info {
  padding: 18px 20px;
  border-right: 1px solid var(--border-color);
}

.contact-info h2 {
  margin-top: 0;
  color: var(--heading-color);
  font-family: var(--font-serif);
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.5;
}

form.contact-form {
  padding: 8px 4px;
  display: grid;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 14px;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  transition: all 0.18s ease;
  outline: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(98, 0, 234, 0.06);
  transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
  color: #9aa0a6;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.btn-submit {
  background: linear-gradient(90deg, var(--primary-color), #7b3bff);
  color: var(--primary-contrast);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(98, 0, 234, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(98, 0, 234, 0.18);
}
.hint {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
  }
  .submit-row {
    justify-content: stretch;
  }
  .btn-submit {
    width: 100%;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Responsive Grid component
   - semantic classes: .grid, .grid__item, .card, .card__media, .card__content
   - columns: 1 (mobile), 2–3 (tablet), 4+ (desktop)
   - gap/spacing included
------------------------------------------------------------------------------*/

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}



.card {
  background: var(--surface-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:focus-within,
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

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

.card__content {
  padding: 16px;
  flex: 1 1 auto;
}

.card__title {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  color: var(--heading-color);
}

.card__desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.02));
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.card__action {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: var(--primary-contrast);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(98, 0, 234, 0.12);
}

/* Breakpoints: adjust number of columns by viewport width */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 18px;
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 20px 28px;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px 40px;
  }
}

/* Utility: compact density */
.grid--dense {
  gap: 12px;
}

