/* css/modal.css */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.service-modal.active { opacity: 1; visibility: visible; }

.service-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
}
.service-modal-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.service-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-blue);
  color: white;
  border-radius: 16px 16px 0 0;
}
.service-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
}
.service-modal-close {
  background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer;
}
.service-modal-body { padding: 2rem; }

.service-form-section { margin-bottom: 2rem; }
.service-form-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
}
.service-form-hint { color: #64748b; font-size: 0.95rem; margin-bottom: 1rem; }

.service-form-group { margin-bottom: 1rem; }
.service-form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.required { color: #e11d48; }

.service-form-input,
.service-form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}
.service-form-input:focus,
.service-form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 27, 117, 0.15);
}

.service-checkboxes-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.service-checkbox-wrapper:hover { background: #f1f5f9; }
.service-checkbox-label {
  font-size: 0.98rem;
  color: var(--text-dark);
}
.service-checkbox-icon {
  color: var(--primary-orange);
  font-weight: bold;
}

.service-btn-submit {
  width: 100%;
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
}
.service-btn-submit:hover {
  background: #00125a;
  transform: translateY(-2px);
}

.service-success-message {
  background: #f0fdf4;
  color: #166534;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  border: 1px solid #86efac;
}

/* Sidebar CTA Button (used in sidebar) */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-blue), #00125a);
  color: white;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 27, 117, 0.25);
}
.sidebar-cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.sidebar-cta-text {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 1.25rem;
}
.sidebar-cta-btn {
  width: 100%;
  background: #e7c16e;
  color: #1e293b;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(231, 193, 110, 0.4);
}
.sidebar-cta-btn:hover {
  background: #d4b056;
  transform: translateY(-3px);
}


.service-success-message,
.service-error-message {
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  margin: 1rem 0;
}
.service-success-message {
  background: #dcfce7;
  color: #166534;
  border: 2px solid #22c55e;
}
.service-error-message {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}
.service-btn-submit:disabled {
  background: #94a3b8 !important;
  cursor: not-allowed;
}