/*
Theme Name: KB-eye
Theme URI: https://keibinomt.jp/
Author: MT TECHNICAL JAPAN
Author URI: https://keibinomt.jp/
Description: AI交通誘導システム KB-eye の専用WordPressテーマ
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kb-eye
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --bg-color: #ffffff;
  --card-bg: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent-color: #2B7DE9;
  /* Blue from KB-eye logo */
  --black: #1a1a1a;
  --white: #ffffff;
  --blue: #2B7DE9;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.1);
  --font-family: 'Noto Sans JP', sans-serif;
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--black);
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  /* Increased to avoid overlapping with footer content */
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(43, 125, 233, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10000;
  /* Ensure it's above everything */
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1E5FBF;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(43, 125, 233, 0.4);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 4rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  margin: 0 0.5rem;
  border: 1px solid var(--accent-color);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(43, 125, 233, 0.3);
}

.btn-primary:hover {
  background: #1E5FBF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 125, 233, 0.4);
}

.btn:not(.btn-primary) {
  background: transparent;
  color: var(--accent-color);
}

.btn:not(.btn-primary):hover {
  background: rgba(56, 211, 159, 0.1);
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-50%, -50%);
  }
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-tagline {
  display: inline-block;
  padding: 0.5rem 2rem;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
}

.hero-logo-large {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.hero-logo-large img {
  height: 80px;
  width: auto;
}

.hero-main-text {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
}

.text-highlight {
  color: var(--accent-color);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7);
}

.text-large {
  font-size: 3.5rem;
  color: var(--accent-color);
  display: block;
  margin-top: 0.5rem;
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7);
}

.hero-actions {
  margin-top: 2rem;
}

.hero-subtitle {
  color: var(--accent-color);
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Challenges Section --- */
.challenges {
  padding: 8rem 0;
  background: #f8f9fa;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.challenge-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eeeeee;
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-soft);
}

.challenge-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.solved-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--accent-color);
  color: var(--white);
  font-weight: 900;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(43, 125, 233, 0.4);
  transform: rotate(5deg);
  z-index: 10;
}

.challenge-card:hover .solved-badge {
  transform: rotate(0deg) scale(1.1);
  transition: var(--transition);
}

.solved-badge-image {
  position: absolute;
  top: -20px;
  right: -30px;
  width: 160px;
  height: auto;
  z-index: 10;
  transition: var(--transition);
}

.challenge-card:hover .solved-badge-image {
  transform: scale(1.05);
}

.challenge-icon {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.challenge-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.challenge-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: left;
}

.challenge-illustration {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.challenge-illustration:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* --- About Section --- */
.about {
  padding: 8rem 0;
  background: #ffffff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-visual {
  position: relative;
}

.about-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: 16px;
  z-index: 0;
}

.about-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.about-visual:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* --- Media Coverage Section --- */
.media-coverage {
  padding: 8rem 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.media-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eeeeee;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.media-icon {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.media-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: bold;
}

.media-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.media-card .btn {
  margin: 0;
}

/* --- Lineup Section --- */
.lineup {
  padding: 8rem 0;
  background: #f8f9fa;
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.lineup-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #eeeeee;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.lineup-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-hover);
}

.lineup-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.lineup-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.lineup-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Comparison Table --- */
.comparison {
  padding: 8rem 0;
  background: #ffffff;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}

th {
  background: #f4f4f4;
  color: var(--text-primary);
  font-weight: bold;
}

td {
  color: var(--text-secondary);
}

td:first-child {
  color: var(--black);
  font-weight: bold;
}

tr:hover {
  background: rgba(43, 125, 233, 0.05);
}

/* Comparison Table Styling - Improved */
.comparison .table-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e1e8ed;
}

.comparison table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.comparison th {
  background: var(--accent-color);
  color: #fff;
  padding: 1.2rem;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.comparison th:last-child {
  border-right: none;
}

.comparison td {
  padding: 1.2rem;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: var(--text-secondary);
  vertical-align: middle;
}

.comparison td:first-child {
  font-weight: 700;
  color: var(--accent-color);
  background: #fcfcfc;
  border-right: 1px solid #eee;
  width: 25%;
}

.comparison tr:last-child td {
  border-bottom: none;
}

/* Highlight Column for KB-eye */
.comparison td:nth-child(2) {
  background: rgba(43, 125, 233, 0.03);
  color: var(--black);
  font-weight: 700;
  font-size: 1.05rem;
  border-right: 1px solid #eee;
  width: 40%;
}

.comparison td:last-child {
  width: 35%;
}

/* Zebra Striping for better readability */
.comparison tbody tr:nth-child(even) td:not(:first-child) {
  background-color: #fafafa;
}

/* Highlight hover effect */
.comparison tbody tr:hover td:not(:first-child) {
  background-color: rgba(43, 125, 233, 0.08);
}

/* --- Flow Section --- */
.flow {
  padding: 8rem 0;
  background: #f8f9fa;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: #eeeeee;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--white);
  border: 4px solid var(--accent-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid var(--white);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--white);
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid var(--white);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--white) transparent transparent;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 20px 30px;
  background: var(--white);
  position: relative;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eeeeee;
}

.timeline-content h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* --- Implementation Support Section --- */
.implementation-support {
  padding: 8rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.support-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eeeeee;
  box-shadow: var(--shadow-soft);
}

.support-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.support-icon {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.support-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: bold;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
}

/* --- FAQ --- */
.faq {
  padding: 10rem 0 8rem;
  background: #f8f9fa;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 2px solid #e8f4fd;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(43, 125, 233, 0.15);
}

.faq-item summary {
  padding: 1.8rem 1.8rem 1.8rem 4.5rem;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  list-style: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  background: linear-gradient(to right, #f0f8ff 0%, #ffffff 100%);
  transition: var(--transition);
}

.faq-item summary:hover {
  background: linear-gradient(to right, #e8f4fd 0%, #ffffff 100%);
}

.faq-item summary::before {
  content: 'Q';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-color);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: bold;
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  padding: 1.5rem 1.8rem 1.8rem 4.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 2px solid #f0f8ff;
  margin-top: 0;
  position: relative;
  background: var(--white);
}

.faq-item p::before {
  content: 'A';
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  background: #34c759;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Solution Banner */
.solution-banner {
  padding: 4rem 0;
  background: #ffffff;
  text-align: center;
  margin-top: 2rem;
}

.solution-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.solution-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
}

.solution-logo {
  height: 60px;
  width: auto;
  filter: none;
  /* No drop shadow needed for dark text logo on light bg */
}

.solution-text-large {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-color);
  text-shadow: none;
  margin: 0;
}

@media (min-width: 768px) {
  .solution-content {
    flex-direction: row;
    gap: 1.5rem;
  }

  .solution-text {
    font-size: 2rem;
  }

  .solution-logo {
    height: 80px;
  }

  .solution-text-large {
    font-size: 3rem;
  }
}

/* --- Company Overview --- */
.company-overview {
  padding: 8rem 0;
  background: #ffffff;
}

.company-content {
  max-width: 800px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.company-table tbody tr {
  border-bottom: 1px solid #eeeeee;
}

.company-table tbody tr:last-child {
  border-bottom: none;
}

.company-table th {
  background: #f4f4f4;
  color: var(--text-primary);
  font-weight: bold;
  padding: 1.5rem;
  text-align: left;
  width: 30%;
  vertical-align: top;
}

.company-table td {
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.corporate-link {
  text-align: center;
  margin-top: 2rem;
}

/* --- Contact --- */
.contact {
  padding: 8rem 0;
  text-align: center;
  background: #f8f9fa;
}

.phone-contact {
  max-width: 600px;
  margin: 0 auto 3rem;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--accent-color);
}

.phone-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.phone-number svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.phone-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.phone-link {
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition);
}

.phone-link:hover {
  color: #1E5FBF;
  transform: scale(1.05);
}

.phone-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.phone-hours svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

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

.form-group label {
  display: block;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--white);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.1);
}

/* --- Contact Form 7 Styling --- */
.wpcf7-form-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eeeeee;
}

.wpcf7-form p {
  margin-bottom: 1.5rem;
}

.wpcf7-form label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-primary);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.1);
}

.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(43, 125, 233, 0.3);
}

.wpcf7-form input[type="submit"]:hover {
  background: #1E5FBF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 125, 233, 0.4);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* CF7 Validation Messages */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
  border-color: #dc3545;
}

.wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.wpcf7-mail-sent-ok {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.wpcf7-spam-blocked {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

/* CF7 Spinner */
.wpcf7-spinner {
  margin-left: 1rem;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(43, 125, 233, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Map Section --- */
.map-section {
  width: 100%;
  padding: 0;
  margin: 0;
}

.map-iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* --- Footer --- */
footer {
  padding: 2rem 0;
  text-align: center;
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Hero section mobile adjustments */
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    padding: 0.4rem 1.5rem;
  }

  .hero-sub {
    font-size: 1.1rem;
  }

  .hero-logo-large img {
    height: 50px;
  }

  .hero-main-text {
    font-size: 1.5rem;
  }

  .text-large {
    font-size: 2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    margin: 0.25rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .left::after,
  .right::after {
    left: 21px;
  }

  .right {
    left: 0%;
  }

  .left::before,
  .right::before {
    left: 60px;
    border: medium solid var(--card-bg);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
  }

  nav ul {
    display: none;
  }

  /* Comparison table - smaller font on mobile */
  .comparison th,
  .comparison td {
    font-size: 0.75rem;
    padding: 1rem;
  }

  /* Challenge cards */
  .challenge-card h3 {
    font-size: 1.1rem;
  }

  .challenge-card p {
    font-size: 0.85rem;
    text-align: left;
  }

  /* Support cards - left align text */
  .support-card p {
    text-align: left;
  }

  /* About section - left align */
  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text p {
    text-align: left;
  }

  /* Media coverage - left align text */
  .media-card p {
    text-align: left;
  }

  .media-card h3 {
    font-size: 1.2rem;
  }

  /* Lineup cards - left align */
  .lineup-card p {
    text-align: left;
  }

  /* Timeline/Flow section - smaller fonts */
  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.85rem;
    text-align: left;
  }

  /* FAQ items */
  .faq-item summary {
    font-size: 0.95rem;
    text-align: left;
  }

  .faq-item p {
    font-size: 0.85rem;
    text-align: left;
  }

  /* Company table */
  .company-table th,
  .company-table td {
    font-size: 0.75rem;
    padding: 0.8rem;
  }

  /* Map section - smaller height on mobile */
  .map-iframe {
    height: 200px;
  }

  /* Mobile line break */
  .mobile-break {
    display: block;
  }

  /* Phone contact - mobile adjustments */
  .phone-contact {
    padding: 1.5rem;
  }

  .phone-label {
    font-size: 0.9rem;
  }

  .phone-link {
    font-size: 1.5rem;
  }

  .phone-hours {
    font-size: 0.85rem;
  }

  /* Badge Fix for Mobile */
  .solved-badge-image {
    width: 130px;
    top: -9px;
    right: -17px;
  }
}


/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Contact Form Customizations --- */
.tag-required {
  background-color: #e74c3c;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.tag-optional {
  background-color: #95a5a6;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.box2 {
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* User Defined Form Structure */
.form-table {
  width: 100%;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.acceptance-row {
  text-align: center;
  margin: 2rem 0;
}