/* ==========================================================================
   Qualified Resources Private Limited - UI Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 208, 132, 0.35);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 132, 0.45);
}

.btn-navy {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
}

.btn-navy:hover {
  background-color: var(--primary-light);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--bg-white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--bg-white);
  color: var(--bg-white);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--primary);
}

.btn-outline-dark:hover {
  background-color: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
}

.badge-gem {
  background: #EBF8FF;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.badge-success {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.badge-warning {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-cin {
  background: rgba(10, 37, 64, 0.08);
  color: var(--primary);
  font-family: monospace;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-color);
}

/* Feature & Service Cards */
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 208, 132, 0.3);
}

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

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(10, 37, 64, 0.04);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary);
  color: var(--secondary);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-card ul li {
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card ul li i {
  color: var(--secondary);
  font-size: 0.85rem;
}

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.service-link:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

/* Feature Box (Why Choose Us) */
.feature-box {
  background: var(--bg-white);
  padding: 1.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 208, 132, 0.12);
  color: var(--secondary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.feature-box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Government / GeM Verified Card */
.gem-showcase-box {
  background: linear-gradient(135deg, #061729 0%, #0A2540 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--bg-white);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 208, 132, 0.3);
  position: relative;
  overflow: hidden;
}

.gem-showcase-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 208, 132, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.gem-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.gem-content h2 {
  color: var(--bg-white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gem-content p {
  color: #CBD5E1;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.gem-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  list-style: none;
}

.gem-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #E2E8F0;
}

.gem-features-list li i {
  color: var(--secondary);
}

.gem-stats-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.gem-badge-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 208, 132, 0.1);
  border: 1px solid rgba(0, 208, 132, 0.3);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.gem-badge-banner i {
  font-size: 2rem;
  color: var(--secondary);
}

/* Estimate / Quote Calculator */
.calculator-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.calc-summary-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.calc-row.total {
  border-top: 2px dashed var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

.calc-row.total .price {
  color: var(--secondary-hover);
  font-size: 1.35rem;
}

/* Director & Leadership Card */
.leader-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.leader-avatar-wrap {
  background: linear-gradient(135deg, var(--primary) 0%, #17426e 100%);
  padding: 2.5rem 1rem;
  color: var(--bg-white);
  display: flex;
  justify-content: center;
}

.leader-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bg-white);
}

.leader-body {
  padding: 1.75rem;
}

.leader-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.leader-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.leader-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.leader-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
}

.leader-social a:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* Compliance Matrix & Verification Box */
.company-credentials-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}

.credentials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.credentials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.credential-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.credential-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(10, 37, 64, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.credential-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.credential-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Job Cards (Careers Portal) */
.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.job-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.job-tag {
  font-size: 0.775rem;
  background: var(--bg-alt);
  color: var(--text-dark);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.job-tag i {
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0d345a 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--bg-white);
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--bg-white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #CBD5E1;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

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

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: var(--transition);
  position: relative;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 2rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive adjustments for components */
@media (max-width: 768px) {
  .calc-grid, .gem-grid, .credentials-list {
    grid-template-columns: 1fr;
  }
  
  .gem-features-list {
    grid-template-columns: 1fr;
  }
  
  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}
