/* Stili per la sezione "La Tua Storia" */

/* Logo testuale invece dell'immagine nell'header e footer */
.text-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #56ab2f;
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-block;
  padding: 10px 0;
  position: relative;
}

.text-logo span {
  background: linear-gradient(to right, #a8e063, #56ab2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.text-logo span::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, #a8e063, #56ab2f);
  transform: scaleX(0.8);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.text-logo:hover span::after {
  transform: scaleX(1);
}

/* Stile per il logo nel footer */
.footer-text-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to right, #a8e063, #56ab2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 15px;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #f5fff0, #f0ffeb);
  color: #333;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23a8e063' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.8;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(86, 171, 47, 0.15);
  border: 2px dashed rgba(168, 224, 99, 0.3);
}

.hero-decoration {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.hero-decoration i {
  font-size: 2.5rem;
  color: #56ab2f;
  background: linear-gradient(to right, #a8e063, #56ab2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(86, 171, 47, 0.3));
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: #56ab2f;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-section h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-image: linear-gradient(to right, #a8e063, #56ab2f);
  border-radius: 2px;
}

.hero-section p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 25px auto 0;
  color: #666;
  line-height: 1.6;
}

/* Project description */
.project-description {
  padding: 60px 0;
  background-color: #f9fff5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a8e063' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.4rem;
  color: #333;
  position: relative;
  display: inline-block;
  font-weight: 700;
  padding-bottom: 15px;
}

.section-title h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background-color: rgba(168, 224, 99, 0.3);
  border-radius: 2px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-image: linear-gradient(to right, #a8e063, #56ab2f);
  border-radius: 2px;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  border: 2px solid rgba(168, 224, 99, 0.3);
  box-shadow: 0 5px 15px rgba(86, 171, 47, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.step-icon {
  width: 80px;
  height: 80px;
  background-image: linear-gradient(to right bottom, #a8e063, #56ab2f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(86, 171, 47, 0.3);
}

.step-icon i {
  font-size: 32px;
  color: #fff;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
}

.step p {
  color: #666;
  line-height: 1.6;
}

/* Stories sections */
.open-stories-section {
  padding: 60px 0;
  background-color: #f5fff0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23a8e063' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.completed-stories-section {
  padding: 60px 0;
  background-color: #f9fff7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a8e063' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.my-stories-section {
  padding: 60px 0;
  background-color: #f5fff0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a8e063' fill-opacity='0.1'%3E%3Cpath d='M4 0h80v24H4V0zm76 4h-4v4h4V4zm0 12h-4v4h4v-4zm-12-8h4v4h-4V8zm12 0h-4v4h4V8zM28 8h4v4h-4V8zm-4 4h-4v4h4v-4zm32-8h4v4h-4V4zm-16 0h4v4h-4V4zM8 12h4v4H8v-4zm20 8h-4v4h4v-4zm-12-8h4v4h-4v-4zm12 0h-4v4h4v-4zm-8-8h4v4h-4V4zm8 0h-4v4h4V4zm24 8h4v4h-4v-4zm0-8h4v4h-4V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px auto 30px;
  max-width: 1200px;
}

.story-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(86, 171, 47, 0.15);
  transition: all 0.3s ease;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(168, 224, 99, 0.2);
}

.story-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(86, 171, 47, 0.25);
}

.story-cover {
  height: 200px;
  background-color: #e9ecef;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
  overflow: hidden;
}

.story-card:hover .story-cover {
  transform: scale(1.05);
}

.story-cover-default {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-image: linear-gradient(135deg, #a8e063, #56ab2f);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.story-cover-default::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.story-cover-default i {
  font-size: 4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.story-info {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-top: 1px solid rgba(168, 224, 99, 0.1);
}

.story-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
}

.story-excerpt {
  color: #666;
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(168, 224, 99, 0.2);
}

.story-author {
  display: flex;
  align-items: center;
}

.story-author i {
  margin-right: 5px;
}

.story-date {
  display: flex;
  align-items: center;
}

.story-date i {
  margin-right: 5px;
}

.story-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  z-index: 1;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-open {
  background-image: linear-gradient(to right, #a8e063, #56ab2f);
}

.status-pending {
  background-image: linear-gradient(to right, #f7b733, #fc4a1a);
}

.status-completed {
  background-image: linear-gradient(to right, #2193b0, #6dd5ed);
}

.status-rejected {
  background-image: linear-gradient(to right, #cb2d3e, #ef473a);
}

.story-action {
  margin-top: 15px;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.primary-btn {
  background-image: linear-gradient(to right, #a8e063, #56ab2f);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background-image: linear-gradient(to right, #56ab2f, #449d24);
  box-shadow: 0 6px 18px rgba(86, 171, 47, 0.4);
  transform: translateY(-2px);
}

.secondary-btn {
  background-image: linear-gradient(to right, #2193b0, #6dd5ed);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(33, 147, 176, 0.3);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background-image: linear-gradient(to right, #1c7a94, #5bc0d9);
  box-shadow: 0 6px 18px rgba(33, 147, 176, 0.4);
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  border: 2px solid rgba(168, 224, 99, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(86, 171, 47, 0.1);
}

.pagination-btn:hover {
  background-color: #f5fff0;
  border-color: rgba(168, 224, 99, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(86, 171, 47, 0.15);
}

.pagination-btn.active {
  background-image: linear-gradient(to right, #a8e063, #56ab2f);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(86, 171, 47, 0.3);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f9f9f9;
  border-color: #eee;
  box-shadow: none;
}

/* Story modal */
.story-modal,
.complete-story-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 50px auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(86, 171, 47, 0.25);
  animation: modalFadeIn 0.4s;
  border: 1px solid rgba(168, 224, 99, 0.2);
  overflow: hidden;
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  70% {
    opacity: 1;
    transform: translateY(10px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #56ab2f;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(86, 171, 47, 0.2);
  border: 2px solid rgba(168, 224, 99, 0.2);
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #449d24;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(86, 171, 47, 0.3);
}

.modal-body {
  padding: 30px;
  background-color: #f9fff7;
}

/* Story detail */
.story-detail {
  padding: 20px 0;
}

.story-header {
  margin-bottom: 30px;
  text-align: center;
}

.story-header h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.story-header .story-meta {
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.story-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.story-content p {
  margin-bottom: 20px;
}

.story-divider {
  height: 2px;
  background-color: #eee;
  margin: 30px 0;
  position: relative;
}

.story-divider::after {
  content: '...';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 0 20px;
  font-size: 1.5rem;
  color: #777;
}

.story-completion {
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.story-completion p {
  margin-bottom: 20px;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 30px;
  font-style: italic;
  color: #666;
}

.story-action-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.story-action-btn:hover {
  background-color: #2980b9;
}

/* Complete story form */
.story-original-content {
  background-color: #f9fff7;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 25px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(168, 224, 99, 0.3);
  box-shadow: inset 0 2px 10px rgba(86, 171, 47, 0.05);
}

.story-original-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

.story-original-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

/* User info section for non-authenticated users */
.user-info-section {
  background-color: #f0fff8;
  border: 2px dashed rgba(168, 224, 99, 0.4);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
}

.user-info-section::before {
  content: "Dati Personali";
  position: absolute;
  top: -12px;
  left: 20px;
  background-color: #fff;
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #56ab2f;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: #56ab2f;
  box-shadow: 0 0 0 3px rgba(86, 171, 47, 0.1);
}

.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  min-height: 200px;
  resize: vertical;
}

.form-help {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 5px;
}

.terms-checkbox {
  display: flex;
  align-items: center;
}

.terms-checkbox input {
  margin-right: 10px;
}

.terms-checkbox label {
  margin-bottom: 0;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.submission-status {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.submission-status.success {
  background-color: #d4edda;
  color: #155724;
}

.submission-status.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Terms modal */
.terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.terms-content {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.terms-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}

.terms-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

/* Loading spinner */
.loading-spinner {
  text-align: center;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner i {
  font-size: 2.5rem;
  color: #56ab2f;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-content {
    padding: 30px;
  }
  
  .step {
    min-width: 45%;
    margin-bottom: 20px;
  }
  
  .stories-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-decoration {
    gap: 20px;
  }
  
  .hero-decoration i {
    font-size: 2rem;
  }
  
  .step {
    min-width: 100%;
  }
  
  .stories-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .story-header h2 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 25px 20px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .stories-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pagination-btn {
    width: 35px;
    height: 35px;
    margin: 0 3px;
    font-size: 0.9rem;
  }
  
  .story-footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .story-cover {
    height: 180px;
  }
  
  .story-cover-default i {
    font-size: 3.5rem;
  }
  
  .user-info-section {
    padding: 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
