/* ============================================================
   AstroEnergy — Serwis Page Styles
   ============================================================ */

/* --- Page Hero BG --- */
.page-hero--bg-serwis {
  position: relative;
  overflow: hidden;
}

.page-hero--bg-serwis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/serwis-web.jpg') center/cover no-repeat;
  opacity: 0.22;
  z-index: 0;
}

.page-hero--bg-serwis::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 0;
}

.page-hero--bg-serwis .container {
  position: relative;
  z-index: 1;
}

/* --- Service Form --- */
.service-form-section {
  padding: 3rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
}

.service-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.service-form__row--2 {
  grid-template-columns: 1fr 1fr;
}

.service-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.service-form__field--full {
  grid-column: 1 / -1;
}

.service-form__field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
}

.service-form__field input,
.service-form__field select,
.service-form__field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: inherit;
}

.service-form__field input:focus,
.service-form__field select:focus,
.service-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.service-form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.service-form__field input[type="file"] {
  padding: 0.5rem;
  font-size: 0.8125rem;
}

/* --- Type Selection --- */
.service-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.service-type-option {
  position: relative;
}

.service-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-type-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
}

.service-type-option label svg {
  width: 32px;
  height: 32px;
  color: var(--gray-400);
  transition: color var(--transition);
}

.service-type-option input:checked + label {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

.service-type-option input:checked + label svg {
  color: var(--accent);
}

.service-type-option label:hover {
  border-color: rgba(138, 61, 140, 0.3);
}

/* --- Priority Selection --- */
.service-priority-grid {
  display: flex;
  gap: 0.75rem;
}

.service-priority-option {
  position: relative;
}

.service-priority-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-priority-option label {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
}

.service-priority-option label:hover {
  border-color: rgba(138, 61, 140, 0.3);
}

.service-priority-option input:checked + label {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

.service-priority-option input[value="pilne"]:checked + label {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

/* --- Contact Preference --- */
.service-contact-grid {
  display: flex;
  gap: 0.75rem;
}

.service-contact-option {
  position: relative;
}

.service-contact-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-contact-option label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
}

.service-contact-option label:hover {
  border-color: rgba(138, 61, 140, 0.3);
}

.service-contact-option input:checked + label {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

/* --- Conditional field --- */
.service-form__conditional {
  display: none;
}

.service-form__conditional.visible {
  display: flex;
}

/* --- Consent --- */
.service-form__consent {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.service-form__consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

/* --- Section Label --- */
.service-form__section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .service-form__row,
  .service-type-grid {
    grid-template-columns: 1fr;
  }

  .service-form__row--2 {
    grid-template-columns: 1fr;
  }

  .service-priority-grid,
  .service-contact-grid {
    flex-wrap: wrap;
  }

  .service-form-section {
    padding: 1.5rem;
  }
}
