/* BotDelBote — Mobile-first CSS */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
header {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

header h1 {
  font-size: 1.5rem;
  color: #25d366;
  letter-spacing: -0.5px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Amount display */
.amount-display {
  text-align: center;
  padding: 1.5rem 0;
  margin: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.amount-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.amount-value {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #25d366;
  color: #fff;
}

.btn-primary:active {
  background: #1da851;
}

.hint {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.75rem;
}

/* Success / expired icons */
.success-icon {
  text-align: center;
  font-size: 3rem;
  color: #25d366;
  margin-bottom: 0.5rem;
}

.expired-icon {
  text-align: center;
  font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 0.5rem;
}

/* Progress bar */
.progress-section {
  margin: 1.25rem 0;
}

.progress-bar {
  background: #e9ecef;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
}

.progress-fill {
  background: #25d366;
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
}

/* Contributions list */
h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.contributions-list {
  list-style: none;
}

.contributions-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.contrib-name {
  flex: 1;
}

.contrib-amount {
  font-weight: 600;
  margin: 0 0.75rem;
}

.contrib-status {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
}

li.paid .contrib-status {
  background: #d4edda;
  color: #155724;
}

li.pending .contrib-status {
  background: #fff3cd;
  color: #856404;
}

/* Messages list */
.messages-list {
  list-style: none;
}

.messages-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.messages-list li strong {
  font-size: 0.85rem;
  color: #25d366;
}

.messages-list li p {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* FAQ accordion */
.faq {
  margin-bottom: 2rem;
}

.faq details {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.faq summary {
  padding: 0.875rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '+';
  display: inline-block;
  width: 1.25rem;
  font-weight: 700;
  color: #25d366;
}

.faq details[open] summary::before {
  content: '-';
}

.faq details p {
  padding: 0 1rem 0.875rem 2.25rem;
  font-size: 0.9rem;
  color: #555;
}

/* Contact form */
.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15);
}

.contact-form .btn {
  margin-top: 1.25rem;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

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

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: #999;
}

/* Tablet+ */
@media (min-width: 600px) {
  .container {
    max-width: 540px;
    padding: 2rem;
  }

  header h1 {
    font-size: 1.75rem;
  }

  .card {
    padding: 2rem;
  }
}
