/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 500px;
  width: 90%;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 20px;
}

.cookie-popup-content {
  display: flex;
  flex-direction: column;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Form error states */
.error-message {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for form submission */
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-popup {
    max-width: 90%;
    padding: 1rem;
  }
}

/* Accessibility improvements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e8775e;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  .cookie-popup {
    display: none;
  }
}

/* Flip Card Styles */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  min-height: 500px;
}

.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

/* Expand Card Styles */
.expand-card {
  transition: all 0.3s ease;
}

.expand-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.expand-card.expanded .expand-card-content {
  max-height: 1000px;
  opacity: 1;
}

.expand-icon {
  transition: transform 0.3s ease;
  font-weight: 300;
  line-height: 1;
}

.expand-card.expanded .expand-icon {
  transform: rotate(45deg);
}

/* Glass morphism effects */
.backdrop-blur-lg {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hover effects */
.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Smooth transitions for all interactive elements */
button,
a,
.flip-card,
.expand-card-header {
  transition: all 0.3s ease;
}

/* Typography refinements */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
}

/* Subtle animations on scroll */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover states */
.bg-white\/10:hover,
.bg-white\/80:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f1e8;
}

::-webkit-scrollbar-thumb {
  background: #e8775e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d66650;
}

/* Border radius refinements */
.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadow refinements */
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .flip-card-front,
  .flip-card-back {
    min-height: 400px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

/* Interaction feedback */
button:active,
a:active {
  transform: scale(0.98);
}

/* Loading animation for form submission */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
}

/* Enhanced focus states for accessibility */
input:focus,
textarea:focus,
select:focus {
  ring: 2px;
  ring-color: #e8775e;
  ring-offset: 2px;
}

/* Prevent layout shift */
* {
  box-sizing: border-box;
}

/* Optimize font rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
