/**
 * ===== CSS ORÇAMENTO REFATORADO - KUROGAMI PORTFOLIO =====
 * 
 * Página de orçamento com linha RGB animada e formulário interativo
 * Baseado na estrutura que funciona corretamente
 * HEADER CORRIGIDO + DESIGN CENTRALIZADO E ORGANIZADO
 * 
 * @author Kurogami Portfolio
 * @version 3.0
 */

/* ===== 1. HERO SECTION COM LINHA RGB - CORRIGIDO ===== */
.quote-hero {
  /* CORREÇÃO: Padding-top para compensar header fixo */
  padding: calc(80px + 4rem) 0 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== LINHA RGB ANIMADA ===== */
.rgb-line {
  width: 100%;
  height: 4px;
  margin: 0 auto 3rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    #f97316 14.28%,
    #eab308 28.56%,
    #22c55e 42.84%,
    #06b6d4 57.12%,
    #3b82f6 71.4%,
    #a855f7 85.68%,
    #ef4444 100%
  );
  background-size: 200% 100%;
  animation: rgbFlow 3s linear infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

@keyframes rgbFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 2. LAYOUT DO FORMULÁRIO ===== */
.quote-form-section {
  padding: 5rem 0;
  background: #020617;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.quote-form-container {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-summary {
  position: sticky;
  top: calc(80px + 2rem);
}

/* ===== 3. SEÇÕES DO FORMULÁRIO ===== */
.form-section {
  margin-bottom: 3rem;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon i {
  width: 25px;
  height: 25px;
  color: white;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

/* ===== 4. CAMPOS DO FORMULÁRIO ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

/* ===== 5. SELETOR DE PACOTES ===== */
.packages-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.package-option {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.package-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-option label {
  display: block;
  padding: 1.5rem;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.package-option:hover label {
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);
}

.package-option.selected label,
.package-option input:checked + label {
  border-color: #a855f7;
  background: linear-gradient(135deg, #1e293b 0%, rgba(168, 85, 247, 0.1) 100%);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.package-info {
  text-align: center;
}

.package-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: #a855f7;
  margin-bottom: 0.75rem;
}

.package-description {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== 6. EXTRAS OPCIONAIS ===== */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.extra-option {
  position: relative;
}

.extra-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.extra-option label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.extra-option:hover label {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.05);
}

.extra-option input:checked + label {
  border-color: #ec4899;
  background: linear-gradient(135deg, #1e293b 0%, rgba(236, 72, 153, 0.1) 100%);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
}

.extra-name {
  font-weight: 600;
  color: #f8fafc;
}

.extra-price {
  font-weight: 700;
  color: #ec4899;
}

/* ===== 7. AÇÕES DO FORMULÁRIO ===== */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.submit-button i {
  width: 20px;
  height: 20px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #94a3b8;
  border: 2px solid #334155;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-button:hover {
  border-color: #64748b;
  color: #cbd5e1;
  transform: translateY(-2px);
}

.back-button i {
  width: 20px;
  height: 20px;
}

/* ===== 8. RESUMO DO ORÇAMENTO ===== */
.summary-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.summary-header {
  padding: 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-icon i {
  width: 25px;
  height: 25px;
  color: white;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.summary-content {
  padding: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.item-value {
  color: #cbd5e1;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.item-price {
  color: #a855f7;
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  margin: 1.5rem 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.total-label {
  font-weight: 700;
  color: #f8fafc;
  font-size: 1.125rem;
}

.total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #a855f7;
}

.summary-note {
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.summary-note p {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== 9. RECURSOS DO RESUMO ===== */
.summary-features {
  padding: 2rem;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item i {
  width: 24px;
  height: 24px;
  color: #a855f7;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
}

.feature-item p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* ===== 10. RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .quote-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .quote-summary {
    position: static;
    order: -1;
  }
  
  .summary-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .quote-hero {
    /* CORREÇÃO MOBILE: Ajustar padding para header menor */
    padding: calc(60px + 3rem) 0 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .quote-form-container {
    padding: 2rem;
  }
  
  .packages-selector {
    grid-template-columns: 1fr;
  }
  
  .extras-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .submit-button,
  .back-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .quote-form-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .quote-hero {
    padding: calc(60px + 2rem) 0 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .quote-form-container {
    padding: 1.5rem;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .section-icon {
    width: 40px;
    height: 40px;
  }
  
  .section-icon i {
    width: 20px;
    height: 20px;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .package-option label {
    padding: 1rem;
  }
  
  .package-name {
    font-size: 1.125rem;
  }
  
  .package-price {
    font-size: 1.75rem;
  }
  
  .summary-header {
    padding: 1.5rem;
  }
  
  .summary-content {
    padding: 1.5rem;
  }
  
  .summary-features {
    padding: 1.5rem;
  }
  
  .quote-form-section {
    padding: 3rem 0;
  }
}

/* ===== 11. ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
  }
}

.rgb-line {
  animation: rgbFlow 3s linear infinite, pulse 2s ease-in-out infinite;
}

/* ===== 12. ACESSIBILIDADE ===== */
.submit-button:focus,
.back-button:focus,
.package-option input:focus + label,
.extra-option input:focus + label,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .rgb-line {
    animation: none;
    background: #a855f7;
  }
}

