/* css/components.css */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-cta);
  color: var(--color-bg-white);
  border: 2px solid var(--color-cta);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: #2168B5; /* Darker accent */
  border-color: #2168B5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-bg-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  border-color: var(--color-bg-white);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-bg-white);
  border: 2px solid #25D366;
}

.btn-whatsapp:hover {
  background-color: #1fb85a;
  border-color: #1fb85a;
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  border: 2px solid var(--color-bg-white);
}

.btn-light:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

/* --- Cards --- */
.service-card {
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-accent); /* Default, overridden via inline or mapped class */
}

.service-card .icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  color: white;
  overflow: hidden;
}

/* === NEO FIX: service card custom icon image === */
.service-card .icon-wrapper .service-card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.service-card h3 {
  margin-bottom: 16px;
}

.service-card p {
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  margin-top: 16px;
}

.card-link i {
  transition: transform 0.3s ease;
}

.card-link:hover i {
  transform: translateX(4px);
}

/* --- FAQ Accordion --- */
.faq-item {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-primary);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--color-bg-gray);
}

.faq-icon {
  color: var(--color-accent);
  transition: transform 0.3s ease;
  font-size: 14px;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: var(--color-text-gray);
}

.faq-item.active .faq-question {
  background-color: var(--color-bg-gray);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Plus to X */
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 20px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 16px;
  pointer-events: none;
}

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

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45,125,210,0.15);
}

.iti {
  width: 100%;
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  padding-top: 16px;
  align-items: flex-start;
}

.input-with-icon textarea ~ i {
  top: 24px;
  transform: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  color: var(--color-text-gray);
  line-height: 1.5;
  cursor: pointer;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 43, 74, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
}

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