/* Centralized all CSS from inline styles into main.css file */

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* CSS Variables for consistent theming */
:root {
  --teal-dark: #0a5755;
  --teal-light: #106e6b;
  --yellow-bolt: #ffd700;
  --light-green: #e8f5e9;
  --success-green: #10b981;
  --success-green-light: #d1fae5;
}

/* Logo Styles */
.logo-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .logo-container {
    max-width: 320px;
  }
}

.logo-banner {
  position: relative;
  background-color: var(--teal-dark);
  border-radius: 18px;
  padding: 8px 16px;
  color: white;
  text-align: center;
  font-weight: bold;
  margin-top: -10px;
  z-index: 1;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .logo-banner {
    padding: 12px 24px;
    border-radius: 22px;
  }
}

.logo-house {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  z-index: 2;
}

@media (min-width: 768px) {
  .logo-house {
    width: 100px;
    height: 100px;
  }
}

.house-icon {
  width: 100%;
  height: 100%;
  fill: var(--teal-dark);
}

.lightning-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 30px;
  height: 30px;
  background-color: var(--teal-dark);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .lightning-container {
    width: 40px;
    height: 40px;
  }
}

.lightning {
  color: var(--yellow-bolt);
  font-size: 20px;
}

@media (min-width: 768px) {
  .lightning {
    font-size: 24px;
  }
}

/* Compact logo variant */
.logo-container.compact {
  max-width: 220px;
}

.logo-container.compact .logo-banner {
  border-radius: 16px;
  padding: 6px 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .logo-container.compact .logo-banner {
    padding: 8px 18px;
    border-radius: 20px;
  }
}

.logo-container.compact .logo-house {
  width: 60px;
  height: 60px;
}

@media (min-width: 768px) {
  .logo-container.compact .logo-house {
    width: 80px;
    height: 80px;
  }
}

.logo-container.compact .lightning-container {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .logo-container.compact .lightning-container {
    width: 30px;
    height: 30px;
  }
}

.logo-container.compact .lightning {
  font-size: 16px;
}

@media (min-width: 768px) {
  .logo-container.compact .lightning {
    font-size: 20px;
  }
}

/* Step Circle Styles */
.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--light-green);
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .step-circle {
    width: 80px;
    height: 80px;
  }
}

/* Custom Form Controls */
.custom-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.custom-radio-input {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  outline: none;
  position: relative;
}

.custom-radio-input:checked {
  border-color: var(--teal-dark);
}

.custom-radio-input:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--teal-dark);
  border-radius: 50%;
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  outline: none;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.custom-checkbox:checked {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

/* Form Input Styles */
.form-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0;
}

.form-input:focus {
  ring: 0;
  outline: none;
  box-shadow: none;
}

.error-text {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Form field error styling */
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Error message styling */
.field-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* Django checkbox styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  outline: none;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

/* Desktop Layout */
@media (min-width: 1024px) {
  .desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .form-section {
    order: 1;
  }

  .info-section {
    order: 2;
    position: sticky;
    top: 2rem;
  }
}

/* Background Patterns */
.bg-pattern {
  background-image: radial-gradient(circle at 25px 25px, rgba(10, 87, 85, 0.03) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(10, 87, 85, 0.03) 2px, transparent 0);
  background-size: 100px 100px;
}

.bg-subtle-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

/* Floating Shapes - Removed to prevent horizontal scroll issues */

/* Success Page Animations */
.success-icon {
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.checkmark {
  animation: checkmarkDraw 0.8s ease-in-out;
}

@keyframes checkmarkDraw {
  0% {
    stroke-dasharray: 0 100;
  }
  100% {
    stroke-dasharray: 100 0;
  }
}

/* Card Shadows */
.card-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.card-shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Success Card Styles */
.success-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.reference-number {
  background: linear-gradient(135deg, var(--success-green-light) 0%, #a7f3d0 100%);
  border: 2px solid var(--success-green);
}

/* Category Card Styles */
.category-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Step List Styling */
.step-list {
  counter-reset: step-counter;
}

.step-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2rem;
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--teal-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Collapsible Sections */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.collapsible-content.expanded {
  max-height: 1000px;
}

.expand-icon {
  transition: transform 0.3s ease;
}

.expand-icon.rotated {
  transform: rotate(180deg);
}
