/*
 * SureSuccess - Contact Page Stylesheet
 * Optimized styles specifically for the contact page
 */

/* ======================================
   BASE STYLES & VARIABLES
   ====================================== */
:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #93c5fd;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --secondary-lighter: #334155;
  
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --background: #ffffff;
  --background-alt: #f8fafc;
  --background-dark: #f1f5f9;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-headings: 'Poppins', var(--font-primary);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* ======================================
   RESET & BASE STYLES
   ====================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background);
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ======================================
   NAVIGATION
   ====================================== */
.navbar {
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
  transition: var(--transition);
  z-index: 100;
}

.navbar-dark .navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
}

.brand-highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.625rem 0.75rem;
  transition: var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--text-white);
}

.navbar-dark .navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-white);
}

.navbar-dark .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero-section {
  position: relative;
  background: var(--primary-gradient);
  color: var(--text-white);
  padding: 7rem 0;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.8;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 800px;
}

/* ======================================
   SECTION STYLES
   ====================================== */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-dark);
  font-size: 2.25rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-full);
}

/* ======================================
   CONTACT METHODS CARDS
   ====================================== */
.contact-card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  height: 100%;
  background-color: var(--background);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-card .card-body {
  padding: 2.5rem;
  text-align: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: var(--border-radius-full);
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background-color: var(--primary);
  color: var(--text-white);
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
}

.contact-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-card .card-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.contact-card .btn {
  min-width: 200px;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-card .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ======================================
   CONTACT FORM STYLES
   ====================================== */
.contact-form-card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  background-color: var(--background);
  overflow: hidden;
  transition: var(--transition);
}

.contact-form-card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-form-card .card-header {
  background-color: var(--background);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem 2rem;
}

.contact-form-card .card-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0;
  color: var(--primary-dark);
}

.contact-form-card .card-body {
  padding: 2rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: var(--background);
  box-shadow: var(--shadow-sm);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

.form-floating > .form-control:hover,
.form-floating > .form-select:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.form-floating > label {
  color: var(--text-muted);
  padding: 1rem 1.25rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--primary);
  opacity: 0.8;
  transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

.form-floating .form-control {
  padding: 1rem 1.25rem;
  height: calc(3.5rem + 2px);
}

.form-floating textarea.form-control {
  height: auto;
  min-height: 150px;
}

#submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  background: var(--primary-gradient);
  border: none;
  color: var(--text-white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

#submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

#submit-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59, 130, 246,
  0.3);
}

#submit-button:disabled {
  background: var(--primary-light);
  opacity: 0.8;
  cursor: not-allowed;
}

.alert {
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* ======================================
   ADDRESS CARD STYLES
   ====================================== */
.address-card {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background-color: var(--background);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
}

.address-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.address-card h5 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.address-card h5 i {
  margin-right: 0.75rem;
  color: var(--primary);
}

.address-card h6 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.address-card h6 i {
  margin-right: 0.75rem;
  font-size: 1rem;
}

.address-card address {
  color: var(--text-muted);
  font-style: normal;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  padding-left: calc(1.5rem + 4px);
}

.address-card p {
  margin-bottom: 0.75rem;
}

.address-card a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.address-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ======================================
   SOCIAL ICONS
   ====================================== */
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--text-white);
  border-radius: var(--border-radius-full);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
  color: var(--text-white);
}

/* ======================================
   FAQ SECTION
   ====================================== */
#faq-section {
  padding: 2rem 0;
}

.faq-card {
  background-color: var(--background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: all 0.3s ease;
}

.faq-card:hover {
  box-shadow: var(--shadow-lg);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  background-color: transparent;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

.accordion-button {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  background-color: var(--background-alt);
  padding: 1.25rem;
  border-radius: var(--border-radius) !important;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(59, 130, 246, 0.5);
}

.accordion-button::after {
  background-size: 1.2rem;
  transition: all 0.3s ease;
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-muted);
  background-color: var(--background);
  line-height: 1.7;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ======================================
   MODAL STYLES
   ====================================== */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.5rem;
}

.modal-header.bg-primary {
  background: var(--primary-gradient) !important;
  color: var(--text-white);
  border-bottom: none;
}

.modal-title {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.modal-title i {
  margin-right: 0.75rem;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 2rem;
}

.modal-body h5 {
  color: var(--text-dark);
  font-weight: 600;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-body p {
  line-height: 1.7;
  color: var(--text-muted);
}

.modal-body strong {
  color: var(--text-dark);
  font-weight: 600;
}

.modal-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  outline: none !important;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover, 
.btn-primary:focus {
  background: var(--primary-dark);
  color: var(--text-white);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--background);
  color: var(--primary);
  border: none;
  box-shadow: var(--shadow);
}

.btn-light:hover, 
.btn-light:focus {
  background-color: var(--background-alt);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--text-white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: white;
}

.btn-secondary {
  background-color: var(--secondary-light);
  color: var(--text-white);
  border: none;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ======================================
   FOOTER
   ====================================== */
footer {
  background-color: var(--secondary);
  color: var(--text-white);
  margin-top: 4rem;
}

footer h4, footer h5 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-lighter);
  padding-left: 5px;
}

/* ======================================
   ANIMATIONS
   ====================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* ======================================
   RESPONSIVE ADJUSTMENTS
   ====================================== */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.75rem;
  }
  
  .hero-section .lead {
    font-size: 1.15rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-card .card-body {
    padding: 2rem;
  }
  
  .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
  
  .contact-form-card .card-header {
    padding: 1.25rem 1.5rem;
  }
  
  .contact-form-card .card-body {
    padding: 1.75rem;
  }
  
  .address-card {
    padding: 1.75rem;
  }
  
  .faq-card {
    padding: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .contact-card .card-body {
    padding: 1.75rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .contact-card h4 {
    font-size: 1.35rem;
  }
  
  .contact-form-card .card-header h3 {
    font-size: 1.5rem;
  }
  
  .address-card h5 {
    font-size: 1.25rem;
  }
  
  .address-card h6 {
    font-size: 1rem;
  }
  
  .faq-card {
    padding: 1.5rem;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .accordion-body {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 3.5rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .contact-card .card-body {
    padding: 1.5rem;
  }
  
  .contact-card .btn {
    min-width: auto;
    width: 100%;
  }
  
  .contact-form-card .card-header {
    padding: 1.25rem;
  }
  
  .contact-form-card .card-body {
    padding: 1.25rem;
  }
  
  .address-card {
    padding: 1.5rem;
  }
  
  #submit-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-card {
    padding: 1.25rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}