/* ============================================
   ESTILOS ESPECÍFICOS - PÁGINA DE DOAÇÃO
   Igreja Evangélica Jeová Jireh
   ============================================ */

/* === HERO DA PÁGINA DE DOAÇÃO === */
.hero-doacao {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
  padding: 80px 24px 64px;
  text-align: center;
}

.hero-doacao-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-doacao-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-doacao-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* === CONTAINER PRINCIPAL === */
.doacao-container {
  max-width: 900px;
  margin: -32px auto 0;
  position: relative;
  z-index: 10;
  padding-bottom: 64px;
}

/* === ETAPAS VISUAIS === */
.etapas-indicador {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 0 24px;
}

.etapa-step {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease;
}

.etapa-step.active {
  background: var(--red-primary);
}

/* === SEÇÕES DAS ETAPAS === */
.etapa-section {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.etapa-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.etapa-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* === CARDS DE SELEÇÃO DE DESTINO === */
.destino-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.destino-card {
  position: relative;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
}

.destino-card:hover {
  border-color: var(--red-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.destino-card.selected {
  border-color: var(--red-primary);
  background: rgba(220, 38, 38, 0.05);
}

.destino-card-radio {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-light);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.destino-card.selected .destino-card-radio {
  border-color: var(--red-primary);
  background: var(--red-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.destino-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
}

.destino-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 8px;
  padding-right: 24px;
}

.destino-card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === BOTÕES DE VALOR SUGERIDO === */
.valor-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.valor-btn {
  padding: 16px 8px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.valor-btn:hover {
  border-color: var(--red-primary);
  background: rgba(220, 38, 38, 0.05);
}

.valor-btn.selected {
  border-color: var(--red-primary);
  background: var(--red-primary);
  color: var(--white);
}

.valor-btn-custom {
  grid-column: span 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.valor-btn-custom.selected {
  border-color: var(--red-primary);
  background: rgba(220, 38, 38, 0.05);
}

.valor-btn-custom-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.valor-btn-custom.selected .valor-btn-custom-radio {
  border-color: var(--red-primary);
  background: var(--red-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.valor-btn-custom-label {
  flex: 1;
  font-weight: 600;
  color: var(--navy-dark);
}

.valor-custom-input-wrapper {
  flex: 1;
  position: relative;
}

.valor-custom-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 500;
}

.valor-custom-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.valor-custom-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.valor-custom-input::placeholder {
  color: var(--text-secondary);
}

.valor-error {
  margin-top: 8px;
  padding: 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: var(--red-primary);
  font-size: 0.875rem;
  display: none;
}

.valor-error.show {
  display: block;
}

/* === RADIO BUTTONS DE IDENTIFICAÇÃO === */
.identificacao-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.identificacao-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.identificacao-radio-label:hover {
  border-color: var(--red-primary);
}

.identificacao-radio-label.selected {
  border-color: var(--red-primary);
  background: rgba(220, 38, 38, 0.05);
}

.identificacao-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.identificacao-radio-label.selected .identificacao-radio {
  border-color: var(--red-primary);
  background: var(--red-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.identificacao-radio-text {
  flex: 1;
  font-weight: 600;
  color: var(--navy-dark);
}

.identificacao-aviso {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 16px;
  padding: 12px;
  background: rgba(10, 22, 40, 0.05);
  border-radius: 8px;
  line-height: 1.5;
}

/* === CAMPOS DE IDENTIFICAÇÃO === */
.identificacao-fields {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.identificacao-fields.show {
  display: flex;
}

.identificacao-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.identificacao-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.identificacao-input {
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.identificacao-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.identificacao-input.error {
  border-color: var(--red-primary);
}

.identificacao-error {
  font-size: 0.875rem;
  color: var(--red-primary);
  display: none;
}

.identificacao-error.show {
  display: block;
}

/* === RESUMO DA DOAÇÃO === */
.resumo-card {
  background: rgba(10, 22, 40, 0.05);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.resumo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.1);
}

.resumo-row:last-child {
  border-bottom: none;
}

.resumo-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.resumo-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-dark);
  text-align: right;
  max-width: 60%;
}

.resumo-destaque {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-primary);
}

/* === BOTÕES DE AÇÃO === */
.doacao-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.doacao-btn-primary {
  flex: 1;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.doacao-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.doacao-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.doacao-btn-secondary {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.doacao-btn-secondary:hover {
  background: var(--gray-ice);
  transform: translateY(-2px);
}

/* === MODAL "PAGAMENTO EM BREVE" === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #22c55e;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.modal-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-btn {
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  .hero-doacao {
    padding: 48px 16px 32px;
  }

  .doacao-container {
    margin-top: -16px;
    padding: 0 16px 48px;
  }

  .etapa-section {
    padding: 24px;
  }

  .destino-options {
    grid-template-columns: 1fr;
  }

  .valor-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .valor-btn-custom {
    grid-column: span 2;
  }

  .doacao-actions {
    flex-direction: column;
  }

  .doacao-btn-primary,
  .doacao-btn-secondary {
    width: 100%;
  }

  .resumo-row {
    flex-direction: column;
    gap: 4px;
  }

  .resumo-value {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .valor-options {
    grid-template-columns: 1fr;
  }

  .valor-btn-custom {
    grid-column: span 1;
  }
}

/* === ACESSIBILIDADE === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Foco visível para acessibilidade */
.destino-card:focus-visible,
.valor-btn:focus-visible,
.identificacao-radio-label:focus-visible,
.doacao-btn-primary:focus-visible,
.doacao-btn-secondary:focus-visible,
.modal-btn:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 2px;
}
