/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: var(--z-fixed);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.brand-link:hover {
  color: var(--primary);
}

.brand-logo {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-base) !important;
  font-weight: 500;
  color: var(--light-700);
  text-decoration: none;
  padding: var(--space-md) var(--space-md);
  border-radius: var(--border-radius);
  transition: all var(--transition);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(230, 190, 0, 0.08);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(230, 190, 0, 0.15), rgba(230, 190, 0, 0.1));
  border: 1px solid rgba(230, 190, 0, 0.3);
  box-shadow: 0 2px 8px rgba(230, 190, 0, 0.2);
  font-weight: 600;
  position: relative;
}

.nav-link.active::before {
  display: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--border-radius-full);
  box-shadow: 0 2px 4px rgba(230, 190, 0, 0.4);
  animation: expandActiveIndicator 0.3s ease-out;
}

@keyframes expandActiveIndicator {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 30px;
    opacity: 1;
  }
}

.cta-nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark) !important;
  padding: .5rem;
  font-size: var(--text-lg) !important;
  font-weight: 600;
  min-height: 48px;
  border-radius: var(--border-radius-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.cta-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Attention-Grabbing Consultation Button */
.btn-consultation {
  --btn-bg: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --btn-color: var(--dark);
  background: var(--btn-bg);
  color: var(--btn-color) !important;
  padding: var(--space-md) var(--space-xl) !important;
  font-size: var(--text-base) !important;
  font-weight: 600 !important;
  min-height: 44px;
  border-radius: var(--border-radius-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 20px rgba(230, 190, 0, 0.2), var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: subtle-pulse 3s ease-in-out infinite;
}

/* Active state for consultation button when on quote page */
.btn-consultation.active-cta {
  background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 4px 20px rgba(0, 168, 204, 0.3), var(--shadow-lg) !important;
  animation: none; /* Remove pulse when active */
}

.btn-consultation.active-cta::before {
  background: linear-gradient(45deg, var(--secondary), var(--primary), var(--secondary));
  opacity: 1;
}

.btn-consultation::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.btn-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 190, 0, 0.4), var(--shadow-glow-lg);
  color: var(--dark) !important;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-consultation:hover::before {
  opacity: 1;
}

.btn-consultation:focus {
  outline: 3px solid rgba(230, 190, 0, 0.4);
  outline-offset: 2px;
}

/* Ensure consultation button doesn't get stuck in active state */
.btn-consultation:active {
  transform: translateY(-1px) scale(1.01) !important;
  transition: all 0.1s ease !important;
}

.btn-consultation:not(:active):not(:hover) {
  transform: translateY(0) scale(1);
  background: var(--btn-bg);
  color: var(--btn-color) !important;
}

/* Subtle attention-grabbing pulse animation */
@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(230, 190, 0, 0.2), var(--shadow-lg);
  }
  50% {
    box-shadow: 0 4px 25px rgba(230, 190, 0, 0.3), var(--shadow-lg);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-sm);
}

/* Responsive navigation breakpoint */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-modal);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    font-size: var(--text-lg) !important;
    justify-content: center;
    margin: 0.25rem 0;
    border-radius: var(--border-radius);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Enhanced mobile active state */
  .nav-link.active {
    background: linear-gradient(135deg, rgba(230, 190, 0, 0.2), rgba(230, 190, 0, 0.15)) !important;
    border: 1px solid rgba(230, 190, 0, 0.4) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 4px 12px rgba(230, 190, 0, 0.3) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    transform: scale(1.02);
  }

  .nav-link.active::after {
    display: none; /* Remove underline on mobile */
  }
  
  .cta-nav-btn {
    margin-top: var(--space-md);
    align-self: center;
    width: auto;
  }
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--light);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: var(--border-radius-full);
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-5xl) var(--container-padding) var(--space-3xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--light);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
  text-align: left;
}

.footer-brand p {
  font-size: var(--text-base);
  color: var(--light-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  text-align: left;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-600);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--light-600);
  text-decoration: none;
  transition: var(--transition);
  font-size: var(--text-base);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) 0;
}

.footer-bottom-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--light-600);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--light-600);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(230, 190, 0, 0.3);
}

.card-header {
  margin-bottom: var(--space-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--dark);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--light);
  margin-bottom: var(--space-md);
}

.card-description {
  color: var(--light-700);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Service Cards */
.service-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-3xl);
  text-align: center;
  transition: all var(--transition-slow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(230, 190, 0, 0.05), rgba(0, 168, 204, 0.05));
  opacity: 0;
  transition: all var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(230, 190, 0, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--dark);
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow-lg);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--light);
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--light-700);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Portfolio Cards */
.portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-2xl);
  overflow: visible;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
}

.portfolio-card .portfolio-image-container {
  padding: var(--space-md);
  overflow: hidden;
  border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
}

.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-2xl);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: var(--space-sm);
  transition: all var(--transition);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(230, 190, 0, 0.2);
}

.portfolio-content {
  padding: var(--space-xl);
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--light);
  margin-bottom: var(--space-sm);
}

.portfolio-description {
  color: var(--light-700);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.portfolio-tag {
  background: rgba(230, 190, 0, 0.1);
  color: var(--primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Team Cards */
.team-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(230, 190, 0, 0.3);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.team-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--light);
  margin-bottom: var(--space-xs);
}

.team-role {
  color: var(--primary);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.team-bio {
  color: var(--light-700);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.team-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-600);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure all form elements are properly contained */
.form-group * {
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--light);
  margin-bottom: var(--space-sm);
  text-transform: none;
  letter-spacing: normal;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--light);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition);
  outline: none;
  box-sizing: border-box;
  display: block;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 190, 0, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--light-600);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

.form-error {
  color: #ff4757;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  display: none;
  font-weight: 500;
}

.form-error:not(:empty) {
  display: block;
}

/* Form error states */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

.form-select option {
  background: var(--dark);
  color: var(--light);
}

/* Badge/Tag Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-full);
  white-space: nowrap;
  min-height: 32px;
}

.badge-primary {
  background: var(--primary);
  color: var(--dark);
}

.badge-secondary {
  background: var(--secondary);
  color: var(--light);
}

.badge-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xl);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .cta-nav-btn {
    margin-top: var(--space-md);
    align-self: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
} 

/* Tag Input Component */
.tag-input-container {
  position: relative;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--border-radius-lg);
  background: var(--color-white);
  min-height: 50px;
  padding: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-xs);
  transition: all 0.3s ease;
  cursor: text;
}

.tag-input-container:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.1);
}

.tag-input-container.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  animation: tagFadeIn 0.3s ease;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tag-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-remove {
  margin-left: var(--space-xs);
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.tag-remove:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.tag-input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 150px;
  padding: var(--space-xs) 0;
  font-size: 1rem;
  color: var(--color-text);
}

.tag-input::placeholder {
  color: var(--color-gray-500);
  font-style: italic;
}

.form-hint {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-hint i {
  color: var(--color-primary);
}

@keyframes tagFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tag input focus state */
.tag-input-container:focus-within .tag-input::placeholder {
  color: var(--color-gray-400);
}

/* Empty state styling */
.tag-input-container:empty .tag-input {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tag-item {
    font-size: 0.8rem;
    padding: var(--space-xs);
    max-width: 150px;
  }
  
  .tag-input {
    min-width: 120px;
    font-size: 0.9rem;
  }
  
  .tag-input-container {
    min-height: 45px;
  }
} 

/* Payment Modal Steps */
.payment-step {
  min-height: 300px;
  transition: all 0.3s ease;
}

.payment-step.active {
  display: block !important;
}

.step-title {
  color: var(--color-light);
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-sm);
}

/* Subscription Summary */
.subscription-summary {
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.1), rgba(0, 168, 204, 0.1));
  border: 1px solid rgba(255, 123, 0, 0.3);
  padding: var(--space-lg);
}

.summary-title {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-align: center;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  border-top: 2px solid var(--color-primary);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-weight: 600;
  font-size: 1.1rem;
}

.summary-label {
  color: var(--color-muted);
}

.summary-value {
  color: var(--color-light);
  font-weight: 500;
}

.summary-item.total .summary-value {
  color: var(--color-primary);
  font-weight: 700;
}

/* Square Payment Form Styling */
.payment-form-container {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.square-payment-field {
  min-height: 60px;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  background: var(--color-white);
  transition: border-color 0.3s ease;
}

.square-payment-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.1);
}

.payment-form-errors {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border: 1px solid #fc8181;
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  color: #c53030;
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

/* Payment Processing States */
.payment-processing-spinner {
  animation: pulse 1.5s ease-in-out infinite;
}

.payment-success-icon {
  animation: bounceIn 0.6s ease;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subscription Details */
.subscription-details {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
  border: 1px solid rgba(40, 167, 69, 0.3);
  padding: var(--space-lg);
  text-align: left;
}

.subscription-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-detail:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--color-muted);
  font-weight: 500;
}

.detail-value {
  color: var(--color-light);
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

/* Modal Enhancements */
.modal-content {
  background: var(--color-dark-800);
  border: 1px solid rgba(255, 123, 0, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 123, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.1), rgba(0, 168, 204, 0.1));
}

.modal-title {
  color: var(--color-light);
  font-weight: 600;
}

.modal-footer {
  border-top: 1px solid rgba(255, 123, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.btn-close {
  background: none;
  border: none;
  color: var(--color-light);
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.btn-close:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .payment-form-container {
    padding: var(--space-lg);
  }
  
  .square-payment-field {
    min-height: 50px;
    padding: var(--space-sm);
  }
  
  .subscription-summary,
  .subscription-details {
    padding: var(--space-md);
  }
  
  .modal-dialog {
    margin: var(--space-md);
  }
} 

/* Modal Step Management - Fix visibility issues */
.payment-step {
  display: none !important; /* Force hidden by default */
}

.payment-step.active {
  display: block !important; /* Force visible when active */
}

/* Fix horizontal scroll issues */
.modal-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix double scroll issue - Only modal-body should scroll */
.modal-body {
  padding: 1.5rem;
  overflow-x: hidden; /* Prevent horizontal scroll only */
  overflow-y: auto; /* Single scroll container here */
  box-sizing: border-box;
  max-height: 75vh; /* Limit modal body height to trigger scroll when needed */
}

/* Ensure all form elements fit within modal */
.form-input, .form-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.col-md-6 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Customer Summary - Ultra Compact One Line - Fix overflow */
.customer-summary {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent summary from overflowing */
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  width: 100%;
}

.summary-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--light);
  margin: 0;
  flex-shrink: 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  padding: 0.125rem 0.25rem;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}

.btn-link:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-light);
}

.summary-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  overflow: hidden; /* Prevent overflow */
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0; /* Allow shrinking */
}

.summary-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--light-600);
  flex-shrink: 0;
}

.summary-value {
  font-size: var(--text-xs);
  color: var(--light);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hide optional fields in compact view */
#customerDomainSummary,
#customerProjectSummary {
  display: none !important;
}

/* Subscription Summary - Prevent overflow */
.subscription-summary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Payment form container - Prevent overflow */
.payment-form-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Demo payment form - Prevent overflow */
.demo-payment-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.demo-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.demo-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Close button styling */
.btn-close {
  background: none;
  border: none;
  color: var(--light-600);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: var(--light);
}

/* Remove conflicting scroll containers */
.payment-step {
  max-height: none;
  overflow: visible;
}

/* Processing Step Styling */
#processingStep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 200px;
}

.payment-processing-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-text {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.processing-subtext {
  font-size: var(--text-sm);
  color: var(--light-600);
}

/* Demo Payment Form Styling */
.demo-payment-form {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
}

.demo-card-field {
  margin-bottom: 1rem;
}

.demo-card-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--light-600);
  margin-bottom: 0.5rem;
}

.demo-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-600);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--light-400);
  font-size: var(--text-sm);
}

.demo-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--primary-light);
  font-size: var(--text-sm);
  margin-top: 1rem;
} 

/* Contact Page FAQ Fixes */
.contact-page .faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.contact-page .faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-page .faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.contact-page .faq-answer {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--light-600);
  margin: 0;
}

.contact-page .faq-answer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-page .faq-answer a:hover {
  color: var(--primary-light);
}

/* Ensure proper spacing and layout */
.contact-page .section-header {
  margin-bottom: 3rem;
}

.contact-page .faq-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
} 