/* 
 * Main styles for domain.com
 * Psychologist booking website
 */

:root {
  /* Color palette */
  --deep-coral: #FF6B6B;
  --slate-indigo: #4B4E6D;
  --citrus-gold: #F9CB40;
  --cloud-mint: #C8FACC;
  --warm-charcoal: #2E2E2E;
  
  /* Font settings */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--warm-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--deep-coral);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  display: inline-block;
}

.section-header h2:after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--slate-indigo);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--deep-coral);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--deep-coral);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--slate-indigo);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section {
  padding: 80px 0;
}

/* Header Styles */
header {
  background: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--slate-indigo);
}

.logo span {
  color: var(--deep-coral);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--deep-coral);
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--cloud-mint) 0%, var(--slate-indigo) 100%);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.2);
  animation: float 8s ease-in-out infinite;
}

.hero:after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(249, 203, 64, 0.15);
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(20px, 20px) rotate(10deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
}

.hero-image {
  flex: 0 0 450px;
  margin-left: 30px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--warm-charcoal);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: flex-start;
}

.about-image {
  margin-top: 20px;
}

.about-image img {
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Benefits Section */
.benefits {
  background-color: #f9f9f9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--cloud-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon i {
  font-size: 1.5rem;
  color: var(--slate-indigo);
}

/* Services Section */
.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.service-item:hover {
  border-color: var(--deep-coral);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--deep-coral);
  margin-bottom: 20px;
}

/* Appointment Types */
.appointment-types {
  background: #f9f9f9;
}

.appointment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.appointment-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.appointment-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.appointment-content {
  padding: 30px;
}

.appointment-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-coral);
  margin: 15px 0;
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, var(--slate-indigo) 0%, var(--deep-coral) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.testimonial-track {
  display: flex;
  animation: slideshow 20s linear infinite;
}

@keyframes slideshow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.testimonial-item {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  padding: 30px;
}

.testimonial-content {
  background: white;
  color: var(--warm-charcoal);
  padding: 30px;
  border-radius: 10px;
  position: relative;
}

.testimonial-content:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  background-color: var(--deep-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Appointment Form Section */
.appointment-form {
  background: white;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--deep-coral);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.form-errors {
  background-color: rgba(255, 107, 107, 0.1);
  border-left: 4px solid var(--deep-coral);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.form-errors p.error {
  color: var(--deep-coral);
  margin-bottom: 5px;
  font-weight: 500;
}

.form-errors p.error:last-child {
  margin-bottom: 0;
}

/* FAQ Section */
.faq {
  background: #f9f9f9;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-question {
  background: white;
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:after {
  content: '+';
  font-size: 1.5rem;
}

.faq-answer {
  background: #f9f9f9;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question:after {
  content: '-';
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* Footer Styles */
footer {
  background: var(--slate-indigo);
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--deep-coral);
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--citrus-gold);
}

.footer-links h3 {
  margin-bottom: 20px;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ddd;
}

.footer-links ul li a:hover {
  color: var(--citrus-gold);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-popup .btn {
  align-self: flex-end;
}

/* Thank You Page Styles */
.thank-you-frame {
  text-align: center;
  padding: 60px 40px;
  border: 3px solid var(--slate-indigo);
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  max-width: 700px;
  margin: 40px auto;
}

.thank-you-frame:before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px dashed var(--deep-coral);
  border-radius: 10px;
  pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-image {
    margin-left: 0;
    margin-top: 30px;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .about-grid, 
  .benefits-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  
  nav.open {
    height: calc(100vh - 80px);
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  nav ul li {
    margin: 0 0 20px 0;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
