@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Geometric Background Patterns */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    linear-gradient(135deg, #f8fafc 0%, #fef3f2 50%, #f1f5f9 100%);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    /* Large triangles */
    linear-gradient(135deg, #fb923c20 25%, transparent 25%),
    linear-gradient(225deg, #fb923c20 25%, transparent 25%),
    linear-gradient(45deg, #ea580c15 25%, transparent 25%),
    linear-gradient(315deg, #ea580c15 25%, transparent 25%),
    /* Diagonal lines */
    repeating-linear-gradient(45deg, transparent, transparent 80px, #f9731610 80px, #f9731610 82px),
    repeating-linear-gradient(-45deg, transparent, transparent 80px, #ea580c08 80px, #ea580c08 82px),
    /* Small squares */
    repeating-linear-gradient(0deg, transparent, transparent 40px, #fb923c08 40px, #fb923c08 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, #fb923c08 40px, #fb923c08 41px);
  background-size: 400px 400px, 400px 400px, 400px 400px, 400px 400px, 80px 80px, 80px 80px, 40px 40px, 40px 40px;
  background-position: 0 0, 200px 200px, 200px 0, 0 200px, 0 0, 0 0, 0 0, 0 0;
  animation: geometricShift 60s linear infinite;
}

@keyframes geometricShift {
  0% {
    background-position: 0 0, 200px 200px, 200px 0, 0 200px, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 400px 400px, 600px 600px, 600px 400px, 400px 600px, 80px 80px, -80px -80px, 40px 40px, -40px -40px;
  }
}

/* Sharp decorative elements */
.max-w-4xl::before {
  content: '';
  position: absolute;
  top: 100px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #fb923c15, #ea580c10);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: float 8s ease-in-out infinite;
  z-index: -1;
}

.max-w-4xl::after {
  content: '';
  position: absolute;
  top: 400px;
  left: -80px;
  width: 150px;
  height: 150px;
  background: linear-gradient(225deg, #f9731615, #fb923c10);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  animation: float 10s ease-in-out infinite reverse;
  z-index: -1;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* Custom dropdown styles */
.custom-select {
  position: relative;
}

.custom-select select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Floating labels with sharp edges */
.floating-label {
  position: relative;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  padding: 16px 12px 8px 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.floating-label input:focus,
.floating-label select:focus,
.floating-label textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 
    0 0 0 3px rgba(249, 115, 22, 0.1),
    4px 4px 0 rgba(249, 115, 22, 0.15);
}

.floating-label input.error,
.floating-label select.error,
.floating-label textarea.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.floating-label label {
  position: absolute;
  left: 12px;
  top: 16px;
  font-size: 16px;
  color: #6b7280;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #f97316;
  font-weight: 500;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button with sharp edges */
.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transform: translateY(0);
  transition: all 0.3s ease;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px rgba(249, 115, 22, 0.3),
    6px 6px 0 rgba(249, 115, 22, 0.2);
}

/* Loading spinner */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f4f6;
  border-top: 2px solid #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success message with sharp edges */
.success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: none;
  animation: slideDown 0.5s ease-out;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 4px 4px 0 rgba(16, 185, 129, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error message with sharp edges */
.error-message {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: none;
  animation: slideDown 0.5s ease-out;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 4px 4px 0 rgba(239, 68, 68, 0.3);
}

/* Field error message */
.field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

/* Section styling with sharp geometric design */
.form-section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(249, 115, 22, 0.1);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    3px 3px 0 rgba(249, 115, 22, 0.08);
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f9731610, transparent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #f97316, #ea580c);
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
}

/* Phone validation styling */
.phone-format-example {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  margin-left: 4px;
}

.phone-validation {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: 4px;
  margin-left: 4px;
}

.phone-validation.valid {
  color: #10b981;
}

.phone-validation.invalid {
  color: #ef4444;
}

.validation-icon {
  width: 12px;
  height: 12px;
}

/* Card container with sharp design */
.bg-white\/80 {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  border: 2px solid rgba(249, 115, 22, 0.15);
  border-radius: 8px !important;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    8px 8px 0 rgba(249, 115, 22, 0.1);
}

/* Navbar sharp design */
nav {
  border-radius: 0 !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 8px));
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 2px 0 rgba(249, 115, 22, 0.1);
}