/* ==========================================================================
   Kontakt Page Styles
   ========================================================================== */

.kontakt-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b151e;
  color: var(--white);
  padding: 105px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kontakt-hero .hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.kontakt-hero .hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.kontakt-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg, 
    rgba(10, 20, 28, 0.76) 0%, 
    rgba(10, 20, 28, 0.65) 50%,
    rgba(10, 20, 28, 0.82) 100%
  );
}

.kontakt-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.kontakt-page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.kontakt-main-section {
  padding: 60px 0 90px 0;
  background-color: #f8fafc;
}

.contact-hours-box {
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid #d8ecdc;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.contact-hours-box h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-hours-box h4 i {
  color: #16a34a;
}

.contact-hours-box p {
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 4px;
}

.contact-hours-box .hours-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0;
}

.btn-kontakt.active-page {
  background-color: var(--primary-green-hover);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Unified Title Typography matching Left Panel and Right Form */
.contact-info-panel h2,
.form-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.contact-info-panel h2 {
  margin-bottom: 12px;
}

.form-title {
  margin-bottom: 24px;
}

/* Contact Form Specific Styles matching Screenshot */
.styled-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.styled-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.styled-contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.styled-contact-form .form-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 2px;
}

.styled-contact-form .form-group label .required {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

.styled-contact-form .form-group input,
.styled-contact-form .form-group select,
.styled-contact-form .form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.styled-contact-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  padding-right: 42px;
  cursor: pointer;
}

.styled-contact-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.styled-contact-form .form-group input:focus,
.styled-contact-form .form-group select:focus,
.styled-contact-form .form-group textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(21, 139, 40, 0.15);
}

.styled-contact-form .form-group input.error,
.styled-contact-form .form-group textarea.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

@media (max-width: 768px) {
  .kontakt-page-title {
    font-size: 2.2rem;
  }
  
  .kontakt-hero {
    min-height: 220px;
    padding: 60px 0;
  }

  .styled-contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-info-panel h2,
  .form-title {
    font-size: 1.5rem;
  }
}

/* Checkbox Styles */
.form-privacy-check {
  margin-top: 8px;
  margin-bottom: 4px;
}

.custom-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid #64748b;
  border-radius: 6px;
  background-color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-checkbox-container:hover .checkmark {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(21, 139, 40, 0.15);
}

.custom-checkbox-container input:focus-visible ~ .checkmark {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(21, 139, 40, 0.25);
}

.custom-checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  box-shadow: 0 2px 6px rgba(21, 139, 40, 0.35);
}

.custom-checkbox-container .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease-in-out;
}

.custom-checkbox-container input:checked ~ .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.check-label {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.45;
  cursor: pointer;
}

.check-label a {
  color: var(--primary-green);
  text-decoration: underline;
  font-weight: 600;
}

.check-label a:hover {
  color: var(--primary-green-hover);
}

