/**
 * ITSOFT DZ - Contact Page Complete Styles
 * Modern professional design
 */

/* ============================================
   HERO SECTION
   ============================================ */

.contact-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 4rem) 0 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

@media (max-width: 767px) {
  .contact-hero {
    min-height: auto;
    padding: calc(64px + 3rem) 0 3rem;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.6;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 163, 224, 0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 102, 204, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066CC;
  margin-bottom: 2rem;
}

.hero-label i {
  font-size: 1rem;
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.contact-hero h1 .line {
  display: block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #64748b;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-contacts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero-contacts {
    flex-direction: column;
    gap: 1rem;
  }
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.hero-contact-item:hover {
  border-color: #0066CC;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
}

.hero-contact-item i {
  font-size: 1.5rem;
  color: #0066CC;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 0.75rem;
}

.hero-contact-item small {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-contact-item strong {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
}

/* ============================================
   CONTACT MAIN SECTION
   ============================================ */

.contact-main {
  padding: 5rem 0;
  background: #ffffff;
}

@media (max-width: 767px) {
  .contact-main {
    padding: 3rem 0;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form-container {
  background: #f8fafc;
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
}

@media (max-width: 767px) {
  .contact-form-container {
    padding: 1.5rem;
    border-radius: 1rem;
  }
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.form-header p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
}

.success-message {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 1rem;
  border: 1px solid #10b981;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.success-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: #64748b;
}

/* Form Styles */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #0066CC;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-error {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.form-actions {
  margin-top: 1rem;
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-header {
  margin-bottom: 1rem;
}

.info-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.info-header p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: #0066CC;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
  transform: translateX(4px);
}

.info-card.primary {
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  border: none;
}

.info-card.primary .card-icon {
  background: rgba(255, 255, 255, 0.15);
}

.info-card.primary .card-content h3,
.info-card.primary .card-content p {
  color: #ffffff;
}

.info-card.primary .card-content a {
  color: rgba(255, 255, 255, 0.9);
}

.info-card.primary .card-content a:hover {
  color: #ffffff;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0066CC;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.card-content p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.card-content a {
  color: #0066CC;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-content a:hover {
  color: #004C99;
  text-decoration: underline;
}

/* ============================================
   QUICK CONTACTS / SOCIAL
   ============================================ */

.quick-contacts {
  text-align: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.quick-contacts h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0066CC;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #0066CC;
  border-color: #0066CC;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
  padding: 5rem 0;
  background: #f8fafc;
}

@media (max-width: 767px) {
  .map-section {
    padding: 3rem 0;
  }
}

.map-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0066CC;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.map-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.map-header p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}

.map-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.placeholder-icon i {
  font-size: 2rem;
  color: #0066CC;
}

.map-placeholder h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.map-placeholder p {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.map-address {
  font-size: 0.875rem;
  color: #0066CC;
  font-weight: 600;
}

/* ============================================
   SERVICES CTA
   ============================================ */

.services-cta {
  padding: 5rem 0;
  background: #ffffff;
}

@media (max-width: 767px) {
  .services-cta {
    padding: 3rem 0;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-cta-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
}

.service-cta-card:hover {
  border-color: #0066CC;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0066CC;
  margin: 0 auto 1.5rem;
}

.service-cta-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.service-cta-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0066CC;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #004C99;
}

.card-link i {
  font-size: 0.75rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  padding: 5rem 0;
  background: #ffffff;
}

@media (max-width: 767px) {
  .faq-section {
    padding: 3rem 0;
  }
}

.faq-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.faq-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.faq-header p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #0066CC;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 102, 204, 0.05);
}

.faq-question i {
  font-size: 1.25rem;
  color: #0066CC;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.5;
}

.faq-answer {
  padding: 1rem 1.5rem 1.5rem 3.5rem;
}

.faq-answer p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .cta-section {
    padding: 3rem 0;
  }
}

.cta-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 163, 224, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.trust-indicators {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #0066CC;
  color: #ffffff;
  border: 1px solid #0066CC;
}

.btn-primary:hover {
  background: #0052a3;
  border-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .btn-large {
    width: 100%;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] .contact-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .hero-mesh {
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 163, 224, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .hero-grid {
  background-image:
    linear-gradient(rgba(0, 163, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 224, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .hero-label {
  background: rgba(0, 102, 204, 0.2);
  color: #00A3E0;
}

[data-theme="dark"] .contact-hero h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .hero-description {
  color: #cbd5e1;
}

[data-theme="dark"] .hero-contact-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-contact-item:hover {
  background: rgba(0, 102, 204, 0.1);
  border-color: #0066CC;
}

[data-theme="dark"] .hero-contact-item small {
  color: #94a3b8;
}

[data-theme="dark"] .hero-contact-item strong {
  color: #f1f5f9;
}

[data-theme="dark"] .contact-main {
  background: #0f172a;
}

[data-theme="dark"] .contact-form-container {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .form-header h2,
[data-theme="dark"] .info-header h2,
[data-theme="dark"] .map-header h2,
[data-theme="dark"] .faq-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .form-header p,
[data-theme="dark"] .info-header p,
[data-theme="dark"] .map-header p,
[data-theme="dark"] .faq-header p {
  color: #cbd5e1;
}

[data-theme="dark"] .form-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .form-input:focus {
  border-color: #0066CC;
  background: #1e293b;
}

[data-theme="dark"] .form-input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .form-label {
  color: #f1f5f9;
}

[data-theme="dark"] .info-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .info-card:hover {
  background: rgba(0, 102, 204, 0.05);
  border-color: #0066CC;
}

[data-theme="dark"] .info-card .card-icon {
  background: rgba(0, 102, 204, 0.15);
  color: #00A3E0;
}

[data-theme="dark"] .info-card .card-content h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .info-card .card-content p {
  color: #94a3b8;
}

[data-theme="dark"] .info-card .card-content a {
  color: #00A3E0;
}

[data-theme="dark"] .info-card .card-content a:hover {
  color: #00D4FF;
}

[data-theme="dark"] .quick-contacts {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .quick-contacts h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .social-link {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .social-link:hover {
  background: #0066CC;
  border-color: #0066CC;
  color: #ffffff;
}

[data-theme="dark"] .map-section {
  background: #0f172a;
}

[data-theme="dark"] .map-wrapper {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .placeholder-icon {
  background: rgba(0, 102, 204, 0.15);
}

[data-theme="dark"] .placeholder-icon i {
  color: #00A3E0;
}

[data-theme="dark"] .map-placeholder h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .map-placeholder p {
  color: #94a3b8;
}

[data-theme="dark"] .map-address {
  color: #00A3E0;
}

[data-theme="dark"] .services-cta {
  background: #0f172a;
}

[data-theme="dark"] .service-cta-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .service-cta-card:hover {
  background: rgba(0, 102, 204, 0.05);
  border-color: #0066CC;
}

[data-theme="dark"] .service-cta-card h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .service-cta-card p {
  color: #94a3b8;
}

[data-theme="dark"] .service-icon {
  background: rgba(0, 102, 204, 0.15);
  color: #00A3E0;
}

[data-theme="dark"] .card-link {
  color: #00A3E0;
}

[data-theme="dark"] .card-link:hover {
  color: #00D4FF;
}

[data-theme="dark"] .faq-section {
  background: #0f172a;
}

[data-theme="dark"] .faq-item {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .faq-item:hover {
  background: rgba(0, 102, 204, 0.05);
  border-color: #0066CC;
}

[data-theme="dark"] .faq-question {
  background: rgba(0, 102, 204, 0.1);
}

[data-theme="dark"] .faq-question i {
  color: #00A3E0;
}

[data-theme="dark"] .faq-question h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .faq-answer p {
  color: #94a3b8;
}

[data-theme="dark"] .cta-trust {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .trust-indicators {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .success-message {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

[data-theme="dark"] .success-message h3 {
  color: #10b981;
}

[data-theme="dark"] .success-message p {
  color: #cbd5e1;
}
