/* ===================================
   BestWay Architect - Components
   =================================== */

/* ===================================
   1. PROJECT CARDS
   =================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.project-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card-image img {
  transform: scale(1.15);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-blue);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.project-card-content {
  padding: var(--space-md);
}

.project-card-title {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-sm);
  color: var(--primary-navy);
  font-weight: 700;
}

.project-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.project-card-meta i {
  color: var(--accent-blue);
  margin-right: 5px;
}

.project-card-description {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  font-weight: 600;
  transition: gap var(--transition-base);
}

.project-card-btn:hover {
  gap: 12px;
}

/* ===================================
   2. STATISTICS COUNTER
   =================================== */

.stats-section {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-xxxl) 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: var(--space-sm);
}

.stat-number {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-accent);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--secondary-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===================================
   3. SERVICE CARDS
   =================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.service-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  transform: rotateY(360deg);
}

.service-title {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-sm);
  color: var(--primary-navy);
}

.service-description {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===================================
   4. TIMELINE
   =================================== */

.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-blue);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: calc(50% - 40px);
  background: white;
  padding: var(--space-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  margin-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
  margin-left: 40px;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-year {
  font-size: var(--fs-h6);
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-xs);
  color: var(--primary-navy);
}

.timeline-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mobile timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 40px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-marker {
    left: 20px;
  }
}

/* ===================================
   5. SKILL BARS
   =================================== */

.skills-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  margin-bottom: var(--space-lg);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.skill-name {
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 1.05rem;
}

.skill-percentage {
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-accent);
}

.skill-bar-bg {
  height: 12px;
  background: var(--secondary-gray);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease;
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* ===================================
   6. MODAL/LIGHTBOX
   =================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: scaleIn 0.3s ease;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: -70px;
}

.modal-next {
  right: -70px;
}

/* ===================================
   7. FILTER CONTROLS
   =================================== */

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--secondary-gray);
  border-radius: 25px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-accent);
  border-color: var(--accent-blue);
  color: white;
  box-shadow: var(--shadow-md);
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 20px;
  border: 2px solid var(--secondary-gray);
  border-radius: 25px;
  font-size: var(--fs-body);
  transition: all var(--transition-base);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.search-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ===================================
   8. TOAST NOTIFICATIONS
   =================================== */

.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: white;
  padding: var(--space-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 300px;
  max-width: 500px;
  animation: slideInFromRight 0.3s ease;
  border-left: 4px solid;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--info);
}

.toast-icon {
  font-size: 1.5rem;
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error .toast-icon {
  color: var(--danger);
}

.toast.warning .toast-icon {
  color: var(--warning);
}

.toast.info .toast-icon {
  color: var(--info);
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.toast-message {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-base);
}

.toast-close:hover {
  color: var(--text-dark);
}

/* ===================================
   9. BREADCRUMBS
   =================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: var(--fs-small);
}

.breadcrumb-item {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.breadcrumb-item a:hover {
  color: var(--accent-blue);
}

.breadcrumb-item.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* ===================================
   10. PAGINATION
   =================================== */

.pagination {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-xl);
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--secondary-gray);
  background: white;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--gradient-accent);
  border-color: var(--accent-blue);
  color: white;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===================================
   11. TABS
   =================================== */

.tabs-wrapper {
  margin-bottom: var(--space-xl);
}

.tabs-nav {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 2px solid var(--secondary-gray);
  margin-bottom: var(--space-lg);
}

.tab-btn {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-base);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-base);
}

.tab-btn:hover {
  color: var(--accent-blue);
}

.tab-btn.active {
  color: var(--accent-blue);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* ===================================
   12. ACCORDION
   =================================== */

.accordion {
  border: 1px solid var(--secondary-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--secondary-gray);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: var(--space-md);
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-base);
  font-weight: 600;
  color: var(--primary-navy);
}

.accordion-header:hover {
  background: var(--background);
}

.accordion-icon {
  transition: transform var(--transition-base);
  color: var(--accent-blue);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: var(--space-md);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===================================
   13. RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-controls {
    flex-direction: column;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .toast-container {
    left: 20px;
    right: 20px;
  }
  
  .toast {
    min-width: auto;
  }
  
  .modal-prev,
  .modal-next {
    display: none;
  }
}

/* ===================================
   HCI IMPROVEMENTS - ERROR HANDLING
   =================================== */

/* Error Summary Box (appears at top of form) */
.error-summary-ultra {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-left: 4px solid #e53e3e;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1);
  animation: slideInDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.error-summary-header i {
  color: #e53e3e;
  font-size: 24px;
}

.error-summary-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #742a2a;
}

.error-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-summary-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(229, 62, 62, 0.1);
}

.error-summary-list li:last-child {
  border-bottom: none;
}

.error-summary-list a {
  color: #c53030;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-summary-list a::before {
  content: "→";
  font-weight: bold;
  transition: transform 0.2s ease;
}

.error-summary-list a:hover {
  color: #9b2c2c;
  text-decoration: underline;
}

.error-summary-list a:hover::before {
  transform: translateX(4px);
}

/* Form Error Message (for submission errors) */
.form-error-message-ultra {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border-left: 4px solid #fc8181;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(252, 129, 129, 0.15);
  animation: shake 0.5s ease-in-out;
}

.error-message-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.error-message-content i {
  color: #fc8181;
  font-size: 20px;
  margin-top: 2px;
}

.error-message-content p {
  margin: 0;
  color: #742a2a;
  font-size: 15px;
  line-height: 1.6;
}

.error-close-btn {
  background: transparent;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.error-close-btn:hover {
  background: rgba(229, 62, 62, 0.1);
  transform: scale(1.1);
}

/* Enhanced Form Field Error States */
.form-input-ultra.error,
.form-select-ultra.error,
.form-textarea-ultra.error {
  border-color: #fc8181 !important;
  background: #fff5f5;
}

.form-input-ultra.success,
.form-select-ultra.success,
.form-textarea-ultra.success {
  border-color: #48bb78 !important;
  background: #f0fff4;
}

.form-error {
  display: block;
  color: #e53e3e;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

.form-error i {
  margin-right: 4px;
}

/* Loading State for Submit Button */
.btn-submit-ultra.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-submit-ultra .submit-loader {
  display: none;
}

.btn-submit-ultra.loading .submit-text {
  display: none;
}

.btn-submit-ultra.loading .submit-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}

/* Success Checkmark Animation */
@keyframes checkmark {
  0% {
    transform: scale(0) rotate(45deg);
  }
  50% {
    transform: scale(1.2) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(45deg);
  }
}

.form-error i.fa-check-circle {
  animation: checkmark 0.3s ease-in-out;
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS (WCAG 2.1)
   =================================== */

/* Skip to Main Content Link - HCI FIX #43 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #00a8cc;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Enhanced Focus Indicators - HCI FIX #46 */
*:focus {
  outline: 2px solid #00a8cc;
  outline-offset: 2px;
}

a:focus, 
button:focus,
input:focus, 
select:focus,
textarea:focus {
  outline: 2px solid #00a8cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.1);
  transition: box-shadow 0.2s ease;
}

/* Special focus for buttons to make them stand out */
.btn-primary:focus,
.btn-modern-primary:focus,
.btn-submit-ultra:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 168, 204, 0.4);
}

/* Focus visible for keyboard navigation only */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
  box-shadow: none;
}

.js-focus-visible .focus-visible {
  outline: 2px solid #00a8cc;
  outline-offset: 2px;
}

/* Reduced Motion Support - HCI FIX #48 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable floating shapes */
  .floating-shape,
  .gradient-orb,
  .hero-gradient-orb {
    animation: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  * {
    border-color: currentColor !important;
  }
  
  .btn-primary,
  .btn-modern-primary {
    border: 2px solid currentColor !important;
  }
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Improved Color Contrast - HCI FIX #45 */
.text-muted {
  color: #4a5568 !important; /* Increased from #999 */
}

.form-label-ultra {
  color: #2d3748 !important; /* Darker for better contrast */
}

::placeholder {
  color: #718096 !important; /* Improved from #999 */
  opacity: 1;
}

.footer-links-modern a {
  color: #a0aec0 !important; /* Better contrast on dark background */
}

.social-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4);
}
