:root {
  --color-primary: #0D4F6F;
  --color-secondary: #1E6B8A;
  --color-accent: #00BCD4;
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 5rem; 
}

body { 
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; 
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#consultation_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Header transparency */
#main-header {
  background: transparent;
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .text-white {
  color: #1f2937 !important;
}

#main-header.scrolled .text-white\/80 {
  color: #6b7280 !important;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0, 188, 212, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(0, 188, 212, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 188, 212, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 188, 212, 0.1),
    rgba(0, 188, 212, 0.1) 1px,
    transparent 1px,
    transparent 20px
  );
}

.decor-mesh {
  background: radial-gradient(ellipse at top, rgba(0, 188, 212, 0.1), transparent),
              radial-gradient(ellipse at bottom, rgba(13, 79, 111, 0.1), transparent);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.2), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, var(--color-accent), transparent);
  opacity: 0.1;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-accent), transparent);
  opacity: 0.1;
}

.decor-glow-element {
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.2);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%2300BCD4' fill-opacity='0.1'%3e%3ccircle cx='30' cy='30' r='2'/%3e%3ccircle cx='30' cy='30' r='10'/%3e%3ccircle cx='30' cy='30' r='20'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* Form styling */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

/* FAQ accordion */
.faq-item {
  transition: all 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f4f6;
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/error messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  button, .btn {
    min-height: 44px;
  }
  
  .form-input {
    min-height: 44px;
  }
}