/* ===========================================
   PROJETOS PAGE — Design-to-Code Form
   =========================================== */

.project-request-section {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

.project-request-section > .container {
  width: 100%;
}

.project-request-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 92, 171, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(0, 117, 215, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.request-card {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 2.5rem;
  /* extra top padding makes room for the promo seal that hangs above */
  padding: 4rem 3rem 3rem;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(192, 199, 214, 0.2);
  position: relative;
  z-index: 1;
}

.request-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Trust badges */
.request-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.request-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 92, 171, 0.07);
  border: 1px solid rgba(0, 92, 171, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.875rem;
  letter-spacing: 0.01em;
}

.request-badge .material-symbols-outlined {
  font-size: 1rem !important;
}

.request-title {
  font-size: 2.5rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.request-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.request-desc {
  color: var(--secondary);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Form Styles */
.project-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--surface-container-low);
  border: 1.5px solid transparent;
  border-radius: 1rem;
  font-size: 1rem;
  color: var(--on-surface);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input.has-icon, .form-textarea.has-icon {
  padding-left: 2.875rem;
}

/* Input wrapper with icon */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.125rem !important;
  color: var(--secondary);
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-icon {
  top: 1rem;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 92, 171, 0.1);
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 1.125rem;
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(0, 92, 171, 0.4);
}

.form-submit-btn span {
  font-size: 1.25rem !important;
}

/* Guarantees strip below CTA */
.form-guarantees {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
}

.guarantee-item .material-symbols-outlined {
  font-size: 1.1rem !important;
  color: #22c55e;
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: white;
  width: 90%;
  max-width: 450px;
  border-radius: 2.5rem;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transform: scale(0.85) translateY(20px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-img-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--primary), #00d2ff);
  position: relative;
}

.modal-img-container::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 92, 171, 0.3);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: white;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 850;
  color: var(--on-surface);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.modal-message {
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-size: 1.0625rem;
}

.modal-close-btn {
  width: 100%;
  padding: 1.125rem;
  border-radius: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  background: var(--surface-container-high);
  color: var(--on-surface);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: var(--on-surface);
  color: white;
  transform: translateY(-2px);
}

/* ===========================================
   PROMO SEAL — Golden Animated Badge
   =========================================== */

.promo-seal {
  position: absolute;
  top: -1.25rem;
  right: 1.75rem;
  width: 96px;
  height: 96px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  filter: drop-shadow(0 8px 20px rgba(212, 160, 23, 0.45));
  animation: seal-float 3s ease-in-out infinite;
}

@keyframes seal-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-6px) rotate(2deg); }
}

.promo-seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px dashed rgba(212, 160, 23, 0.55);
  animation: spin-ring 12s linear infinite;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.promo-seal-inner {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(#d4a017, #f5c842, #b8860b, #f5c842, #d4a017);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(180, 120, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-seal:hover .promo-seal-inner {
  transform: scale(1.07);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.5),
    0 8px 24px rgba(180, 120, 0, 0.55);
}

.promo-seal-icon {
  font-size: 1.25rem !important;
  color: #fff;
  line-height: 1;
}

.promo-seal-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 1px;
}

.promo-seal-value {
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.promo-seal-expire {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1;
}

/* ===========================================
   PROMO MODAL
   =========================================== */

.promo-modal-card {
  text-align: left;
  max-width: 520px;
  width: 95%;
  max-height: 90vh;
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.promo-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--surface-container-low, #f4f4f5);
  color: var(--on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.promo-modal-close:hover {
  background: var(--surface-container-high, #e4e4e7);
}

.promo-modal-close .material-symbols-outlined {
  font-size: 1.1rem !important;
}

.promo-modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.promo-modal-seal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(#d4a017, #f5c842, #b8860b, #f5c842, #d4a017);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.promo-modal-seal-icon .material-symbols-outlined {
  font-size: 2rem !important;
  color: #fff;
}

.promo-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.promo-modal-subtitle {
  font-size: 0.9375rem;
  color: var(--secondary);
  line-height: 1.5;
}

.promo-modal-subtitle strong {
  color: var(--on-surface);
}

.promo-rules-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.promo-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.55;
}

.promo-rules-list li .material-symbols-outlined {
  font-size: 1.1rem !important;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 1px;
}

.promo-rules-list li strong {
  color: var(--on-surface);
}

.promo-modal-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 1rem;
  text-decoration: none;
}

.promo-modal-note {
  text-align: center;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--secondary);
}

/* ===========================================
   HOME PROMO BANNER
   =========================================== */

.home-promo-banner {
  padding: 0 0 1rem;
}

.home-promo-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #1a1200 0%, #2e1f00 100%);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 1.25rem;
  padding: 1.125rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.home-promo-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(212, 160, 23, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.home-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(212, 160, 23, 0.18);
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f5c842;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-promo-badge .material-symbols-outlined {
  font-size: 1rem !important;
}

.home-promo-content {
  flex: 1;
}

.home-promo-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(245, 200, 66, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.home-promo-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #f5c842;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.3;
}

.promo-countdown-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(212, 160, 23, 0.2);
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f5c842;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.home-promo-btn {
  background: linear-gradient(135deg, #d4a017, #f5c842);
  color: #1a1200;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.7rem 1.375rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.home-promo-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.home-promo-btn .material-symbols-outlined {
  font-size: 1.1rem !important;
}

/* =============================================
   MOBILE — max-width: 768px
   ============================================= */
@media (max-width: 768px) {
  .project-request-section {
    display: block; /* Remove flex to avoid top clipping on long content */
    padding: 7rem 0 4rem;
  }


  .request-card {
    width: 100%;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 2rem; /* top room for seal */
    border-radius: 1.5rem;
  }

  .request-header {
    margin-bottom: 2rem;
  }

  .request-title {
    font-size: 1.75rem;
  }

  .request-desc {
    font-size: 0.9375rem;
  }

  .project-form {
    gap: 1.25rem;
  }

  .form-grid {
    gap: 1rem;
  }

  .form-guarantees {
    gap: 0.75rem 1rem;
  }

  .promo-seal {
    top: -0.75rem;
    right: 1rem;
    width: 80px;
    height: 80px;
  }
}

/* =============================================
   MOBILE — max-width: 640px (small phones)
   ============================================= */
@media (max-width: 640px) {
  .project-request-section {
    display: block;
    padding: 6.5rem 0 3rem;
  }

  .request-card {
    width: 100%;
    margin: 0 auto;
    padding: 4rem 1.25rem 1.75rem;
    border-radius: 1.25rem;
  }

  .request-title {
    font-size: 1.5rem;
  }

  .request-badges {
    gap: 0.5rem;
  }

  .request-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }

  .form-submit-btn {
    padding: 1rem;
    font-size: 1rem;
  }

  .form-guarantees {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* Home promo banner */
  .home-promo-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.25rem;
  }

  .home-promo-title {
    font-size: 1rem;
  }

  .home-promo-btn {
    width: 100%;
    justify-content: center;
  }

  /* Promo modal */
  .promo-modal-card {
    padding: 4rem 1.25rem 1.75rem;
    width: 95%;
    border-radius: 1.5rem;
  }

  .promo-modal-header {
    margin-bottom: 1.25rem;
  }

  .promo-modal-seal-icon {
    width: 52px;
    height: 52px;
  }

  .promo-modal-title {
    font-size: 1.25rem;
  }

  .promo-modal-subtitle {
    font-size: 0.875rem;
  }

  .promo-rules-list {
    gap: 0.625rem;
    margin-bottom: 1.25rem;
  }

  .promo-rules-list li {
    font-size: 0.8125rem;
  }
}
