/**
 * Serwis Natu form styles
 */

:root {
  --sa-primary: #ff8c00;
  --sa-primary-hover: #ff7000;
  --sa-light: #f5f5f5;
  --sa-dark: #333333;
  --sa-gray: #e0e0e0;
  --sa-text: #444444;
  --sa-border: #dddddd;
  --sa-success: #4caf50;
  --sa-error: #f44336;
  --sa-inactive: #aaaaaa;
  --sa-accent: #6ba505;
}

.form-bg .form-inner {
  background-image: none !important;
  background-color: white !important;
}

.serwis-natu-form-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
    background-color: white;

}
@media (max-width: 768px) {
    .serwis-natu-form-container {
        padding: 50px 0;
    }
}

.sa-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
  gap: 2em;
}

.sa-progress-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 25%;
  position: relative;
}
@media (max-width: 768px) {
    .sa-progress-bar  {
        display: grid;
          grid-template-columns: 1fr 1fr; 
    }
  .sa-progress-item {
    width: 100%;
  }
}

.sa-progress-label {
  text-align: left;
  font-size: 14px;
  color: var(--sa-inactive);
}

.sa-progress-item.active .sa-progress-label {
  color: var(--sa-dark);
  font-weight: 500;
}

.sa-progress {
  width: 100%;
  height: 8px;
  background-color: #e6e6e6;
  transition: background-color 0.3s ease;
  margin-top: 35px;
  border-radius: 10px;
}

.sa-progress-item.active .sa-progress {
  background-color: var(--sa-accent);
  color: white;
}

#serwis-natu-form h2 {
  font-size: 24px;
  color: var(--sa-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

#serwis-natu-form h3 {
  font-size: 18px;
  color: var(--sa-dark);
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 500;
}

.step-description {
  margin-top: 1em;
  line-height: 1.5;
  margin-bottom: 2em;
  color: var(--sa-text);
  font-size: 15px;
}

/* RADIO BUTTONS */
.sa-radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 35px;
}

/* Custom radio button */
.sa-radio-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Radio hover state */
.sa-radio-label:hover::before {
  border-color: var(--sa-accent);
}

/* Radio checked state */
.sa-radio:checked + .sa-radio-text::before,
.sa-radio-label:has(.sa-radio:checked)::before {
  background-color: var(--sa-accent);
  border-color: var(--sa-accent);
}

/* Custom radio dot - tylko jedna wersja */
.sa-radio-label:has(.sa-radio:checked)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
}

.sa-radio {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.sa-radio-text {
  cursor: pointer;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Fallback dla starsze przeglądarki (bez :has()) */
.sa-radio:checked ~ .sa-radio-text::before {
  background-color: var(--sa-accent);
  border-color: var(--sa-accent);
}

.serwis-natu-step {
  display: none;
}

.serwis-natu-step.active {
  display: block;
}

.step-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.form-section {
  margin-bottom: 15px;
  padding: 0 !important;
  margin-top: 0 !important;
}

.checkbox-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}
@media (max-width: 767px) {
    .checkbox-options {
        grid-template-columns: 1fr;
    }
    
}

input[type="checkbox"]:focus-visible,
input[type="checkbox"]:focus {
  outline: none !important;
}
/* Original styles */
.checkbox-option,
.extra-service-item,
label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  position: relative;
}
label:has(input[type="checkbox"]) {
  margin-bottom: 0 !important;
}

.checkbox-option input[type="checkbox"],
.extra-service-item input[type="checkbox"],
label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: white;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-option input[type="checkbox"]:checked,
.extra-service-item input[type="checkbox"]:checked,
label input[type="checkbox"]:checked {
  background-color: #7cb342;
  border-color: #7cb342;
}

.checkbox-option input[type="checkbox"]:checked::after,
.extra-service-item input[type="checkbox"]:checked::after,
label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.checkbox-option label,
.extra-service-item label,
label:has(input[type="checkbox"]) {
  cursor: pointer;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Additional styles for your specific checkbox structure */
.service-product-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  position: relative;
}

.service-product-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: white;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.service-product-checkbox-input:checked {
  background-color: #7cb342;
  border-color: #7cb342;
}

.service-product-checkbox-input:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.service-product-checkbox label {
  cursor: pointer;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkbox-option label {
    display: block;
}

.extra-service-item label {
  width: 100%;
}

.extra-service-name {
  display: block;
}

.extra-service-item label {
  width: 100%;
}

.extra-service-name {
  display: block;
}

.radio-options {
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
}
.radio-option {
  margin-bottom: 20px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
}

.subsection {
  padding: 15px;
}

#serwis-natu-form h4 {
  font-size: 16px;
  margin-top: 10px;
}

.akwarium-section {
  margin-bottom: 30px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  background-color: #fff;
}

.hidden {
  display: none;
}

#wiecej_container {
 
  margin-left: 25px;
}

#wiecej_container input[type="number"] {
  width: 60px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.form-navigation {
  display: flex;
  gap:20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 30px;
}

.sa-button {
  display: inline-block;
  padding: 1em 2em;
  color: white;
  background-color: var(--sa-accent);
  border-radius: 35px;
  transition: all 0.3s ease;
  font-size: 1em;
  cursor: pointer;
  border: 0;
  font-weight: 500;
}

.next-step {
  background-color: var(--sa-primary);
  color: white;
}

.prev-step {
  background-color: var(--sa-light);
  color: var(--sa-dark);
}

.tooltip-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--sa-gray);
  color: var(--sa-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  margin-left: 8px;
  cursor: help;
  position: relative;
}

.tooltip-content {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 10px;
  border-radius: 4px;
  min-width: 200px;
  max-width: 300px;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none; /* Prevent tooltip from blocking mouse events */
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-icon:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.error-message {
  color: #f44336;
  background-color: #ffebee;
  padding: 10px;
  font-size: 18px;
  border-radius: 4px;
  margin: 10px 0;
  border-left: 4px solid #f44336;
  display: none;
}

/* Styling for disabled checkboxes and their labels */
input[type="checkbox"]:disabled + label {
  color: #ccc;
  cursor: not-allowed;
}

/* Improve cursor appearance for tooltip icons */
label:has(+ .tooltip-icon),
label:has(.tooltip-icon) {
  cursor: pointer;
}

/* Animation for showing/hiding aquarium sections */
.akwarium-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.akwarium-section:nth-child(n + 2) {
  animation: fadeIn 0.4s ease forwards;
}

.fade-in-section {
  animation: fadeIn 0.4s ease forwards;
}

#template-akwarium {
  display: none !important;
}

/* Disabled fields styling */
input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Step 3 Styling */
.package-recommendation {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
}

.package-recommendation:hover {
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  flex-direction: column;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4caf50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Step 2 styles */
.form-row {
  margin-bottom: 15px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
}
@media (max-width: 767px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: 10px;
  width: 100%;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="datetime-local"],
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--sa-border);
  border-radius: 25px;
  background-color: white;
  color: var(--sa-dark);
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-field input.error,
.form-field textarea.error {
  border-color: #d32f2f;
  background-color: #fff8f8;
}

.form-field .required {
  color: #d32f2f;
  margin-left: 3px;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.section-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

/* File upload styles */
.file-upload {
  position: relative;
  cursor: pointer;
}

.aquarium-photos-container {
  margin-top: 20px;
}

.aquarium-photos-container .photo-upload-row {
  margin-bottom: 20px;
}

.aquarium-photos-container .form-field {
  display: flex;
  flex-direction: column;
}

.aquarium-photos-container .form-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
}

.aquarium-photos-container .file-upload {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.aquarium-photos-container .file-preview img {
  width: 150px;
  height: 150px;
  border-radius: 4px;
  object-fit: cover;
}

.aquarium-photos-container .file-preview .file-info {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.file-preview {
  margin-top: 10px;
  max-width: 150px;
  position: relative;
}

.remove-file-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-upload-row {
  margin-bottom: 15px;
}

.photo-upload-row:last-child {
  border-bottom: none;
}

/* Styles for disabled checkboxes - Tank Type selection */
.checkbox-option.disabled-checkbox {
  opacity: 0.5;
  pointer-events: none;
}

.checkbox-option.disabled-checkbox label {
  cursor: not-allowed;
}

.checkbox-option.disabled-checkbox input {
  cursor: not-allowed;
}

/* 
 * Recommended Products Styles
 */

/* Container styles */
#recommended-products-container {
  margin-top: 20px;
  width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#recommended-products-list {
    min-width: 550px;
}

#recommended-products-list .section-description {
  margin-top: 20px;
}

/* Loading spinner */
.loading-spinner {
  text-align: center;
  padding: 20px;
}

.loading-spinner .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Products table */
.recommended-products-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.recommended-products-table th,
.recommended-products-table td {
  text-align: left;
}

.recommended-products-table th {
  color: #333;
}

.recommended-products-table td {
  vertical-align: middle;
}

.recommended-products-table tr:hover {
}

.recommended-products-table img {
  max-width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
}

/* Service product checkboxes styling */
.service-product-checkbox {
  display: flex;
  align-items: center;
}

.service-product-checkbox-input {
  margin-right: 8px;
  cursor: pointer;
}

.service-product-checkbox label {
  cursor: pointer;
  font-weight: normal;
}

.service-product-checkbox-input:checked + label {
  font-weight: bold;
  color: var(--sa-primary);
}

/* Selected products in summary */
.selected-products-list {
  margin: 10px 0;
  padding-left: 25px;
}

.selected-products-list li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
}



/* No products message */
.no-products-message {
  padding: 20px;
  text-align: center;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 20px;
  color: #666;
}

/* No image placeholder */
.no-image {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #999;
  font-size: 10px;
  text-align: center;
  border-radius: 4px;
}

.extra-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 25px;
}

.extra-service-price {
  font-weight: bold;
  color: #4caf50;
  white-space: nowrap;
  margin-left: 10px;
}

.extra-service-checkbox:disabled + .extra-service-name,
.extra-service-checkbox:disabled ~ .extra-service-price {
  opacity: 0.5;
  
  color: #999;
}

.extra-service-description {
  margin-top: 5px;
  margin-bottom: 0;
  margin-left: 24px;
  font-size: 0.9em;
  color: #777;
}

/* Cost summary styling for extra services */
.cost-item.extra-service {
  background-color: #f9fff9;
}

/* Responsive adjustments for extra services */
@media (max-width: 768px) {
  .extra-services-list {
    grid-template-columns: 1fr;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recommended-products-table th,
  .recommended-products-table td {
    padding: 8px;
  }

  .recommended-products-table img {
    max-width: 40px;
  }

  .recommended-products-table th:first-child,
  .recommended-products-table td:first-child {
    padding-left: 5px;
  }

  .recommended-products-table th:last-child,
  .recommended-products-table td:last-child {
    padding-right: 5px;
  }
}

.extra-services-title {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.extra-service-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.extra-service-tooltip {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #999;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 11px;
  margin-left: 5px;
  cursor: help;
  position: relative;
}

.extra-service-tooltip:hover {
  background-color: #666;
}

.extra-service-tooltip .tooltip-content {
  min-width: 180px;
  max-width: 250px;
}

.extra-service-price {
  font-size: 14px;
  color: #4caf50;
  font-weight: 500;
  margin-left: 10px;
  white-space: nowrap;
}

/* Restart aquarium checkbox styling */
.restart-checkbox:checked {
  accent-color: #ff5722;
}

.restart-checkbox:checked + label {
  color: #ff5722;
  font-weight: bold;
}

/* Animation for newly added items */
@keyframes highlightNew {
  from {
    background-color: #fffde7;
  }
  to {
    background-color: transparent;
  }
}

.extra-service-item.new-item {
  animation: highlightNew 1.5s ease-out;
}

.historia-serwisowa-header {
  margin-bottom: 25px;
}


/**
 * Summary step styles
 */



/* Aquarium card */
.aquarium-summary-card {
border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Package section */
.package-summary {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}



.package-summary-price {
   width: 80px;
   text-align: right;
    float: right;
}

/* Options list */
.options-summary h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.options-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.options-list li {
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    color: #666;
   
}

.options-list li:before {
    content: "✓";
    color: #4CAF50;
    margin-right: 8px;
    font-weight: bold;
}

/* Extra services summary */
.extra-services-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}
.extra-services-summary h4 {
  margin-bottom: 15px;
}
.extra-services-header {
    margin-top: 20px !important;
}

.extra-service-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* Aquarium photo */
.aquarium-photo-summary {
    margin-top: 15px;
    text-align: left;
}

.aquarium-photo-summary img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Contact information */
.contact-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-summary-item {
    margin-bottom: 10px;
}

.contact-summary-label {
    margin-bottom: 0 !important;
}


.contact-summary-value {
    font-size: 16px;
    color: #666;
    
}

/* Final cost summary */
.final-cost-summary {
   
   
}

.package-summary-name {
    margin: 0 !important;
}

.extra-service-summary-item-name {
   
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    color: #666;
}

.final-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
  
}

.final-cost-item span {
    font-size: 16px;
    color: #666;
}

.final-cost-item span:last-child {
    width: 80px !important;
    text-align: right;
}

.final-cost-total , .final-cost-total span {
    display: flex;
    justify-content: space-between;

    margin-top: 10px;
    font-weight: 600;

    font-size: 20px;
}

.cost-disclaimer {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
    margin-top: 4px;
}

/* Preparation instructions */
.preparation-instructions {
    padding-left: 35px;
}

.preparation-instructions li {
    margin-bottom: 8px;
    font-size: 16px;
    color: #666;
 
}

/* Terms section */
.terms-section {
   
    border-radius: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.terms-section label {
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-summary-grid {
        grid-template-columns: 1fr;
        gap:0;
    }
}
