
/* ===== CORE VARIABLES ===== */
:root {
  --primary: #559BBA;
  --primary-light: #6FC1E4;
  --primary-dark: #3D7A94;
  --secondary: #E14B05;
  --secondary-light: #FF5E1A;
  --secondary-dark: #B33C04;
  --accent: #FFD166;
  --dark: #2C3E50;
  --darker: #1A1A2E;
  --light: #FFFFFF;
  --lighter: #F9F7F3;
  --gray: #A5A9AA;
  --gray-light: #E0E0E0;
  --error: #E74C3C;
  --success: #2ECC71;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  --container-width: 1400px;
  --section-padding: 6rem 0;
  --edge-spacing: 3rem;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--lighter);
  overflow-x: hidden;
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: 1.5rem;
  color: var(--dark);
  opacity: 0.9;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===== LAYOUT & BUTTONS ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--edge-spacing);
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-2px);
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.morph-shape {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 10px;
  animation: morphAnimation 1.5s infinite ease-in-out;
}

.morph-shape:nth-child(1) {
  animation-delay: 0s;
  background: var(--primary);
}

.morph-shape:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--secondary);
}

.morph-shape:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--accent);
}

@keyframes morphAnimation {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
    border-radius: 50%;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    border-radius: 15%;
  }
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--lighter) 0%, #F0F4F8 100%);
}

/* Contact Hero Section */
.contact-hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(85, 155, 186, 0.05) 0%, rgba(85, 155, 186, 0.15) 100%);
  border-bottom: 1px solid rgba(85, 155, 186, 0.1);
}

.contact-hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.contact-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--dark);
  opacity: 0.8;
}

/* Contact Flow Container */
.contact-flow-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem var(--edge-spacing);
}

.contact-step {
  display: none;
  background: var(--light);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.5s ease-in-out;
}

.contact-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-step h2 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-step p {
  margin-bottom: 2rem;
  color: var(--gray);
}

/* Service Selection Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.service-card {
  position: relative;
  height: auto;
  overflow: visible;
  padding: 0;
  min-width: unset;
  background: transparent;
  box-shadow: none;
}

.service-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.service-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--light);
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  text-align: center;
}

.service-card label i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card label span {
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}

.service-card input[type="checkbox"]:checked + label {
  border-color: var(--primary);
  background: rgba(85, 155, 186, 0.05);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.service-card input[type="checkbox"]:checked + label i {
  color: var(--primary);
  transform: scale(1.2);
}

.service-card input[type="checkbox"]:checked + label span {
  color: var(--primary);
  font-weight: 600;
}

.service-card label:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

#other-service-container {
  position: relative;
}

#other-service-input {
  display: none;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  margin-top: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

#other-service-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(85, 155, 186, 0.2);
}

/* Service Selection Error Message */
.service-selection-error {
  display: none;
  color: var(--error);
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--error);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 500;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Contact Form Styles */
.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(85, 155, 186, 0.2);
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

/* Loading Animation */
.loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.orbit {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
  animation: rotateOrbit 4s linear infinite;
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 0 20px rgba(85, 155, 186, 0.6);
}

.moon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(225, 75, 5, 0.6);
  animation: moonOrbit 2s linear infinite;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes moonOrbit {
  from { transform: rotate(0deg) translateX(60px); }
  to { transform: rotate(360deg) translateX(60px); }
}

.loading-animation p {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
}

/* Confirmation Message */
.confirmation-message {
  text-align: center;
  padding: 2rem;
}

.confirmation-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-icon svg {
  width: 60px;
  height: 60px;
}

.checkmark {
  stroke: var(--success);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheckmark 1s forwards;
}

@keyframes drawCheckmark {
  to {
    stroke-dashoffset: 0;
  }
}

.confirmation-message h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.confirmation-message p {
  color: var(--dark);
  margin-bottom: 1rem;
}

#selected-services-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(85, 155, 186, 0.05);
  border-radius: var(--border-radius);
  display: inline-block;
}

#selected-services-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

#selected-services-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Footer Styles */
.footer-section {
  background: var(--darker);
  color: var(--light);
  padding: 5rem var(--edge-spacing) 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-column p, .footer-column a {
  opacity: 0.8;
  color: var(--gray-light);
  margin-bottom: 1rem;
  display: block;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--light);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
  z-index: 999;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--secondary-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* reCAPTCHA Container */
.g-recaptcha {
  margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-flow-container {
    padding: 2rem 1.5rem;
  }
  
  .contact-step {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-hero {
    padding: 4rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-step {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  #back-btn {
    order: 2;
  }
  
  #submit-btn {
    order: 1;
  }
}
