/*
Theme Name: Divora Pflegedienst
Theme URI: https://divora-pflege.de
Author: Divora Pflegedienst
Description: Elementor-ready theme für Divora Pflegedienst – Pflege mit Herz und Vertrauen.
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: divora
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --navy:       #1a3a5c;
  --teal:       #2a9d8f;
  --teal-light: #3dbfb0;
  --teal-pale:  #eaf6f5;
  --green-dark: #1a5c4a;
  --cream:      #faf9f7;
  --white:      #ffffff;
  --text-dark:  #1c2b3a;
  --text-mid:   #3d5268;
  --text-light: #6b8298;
  --border:     #dde6ee;
  --shadow:     0 2px 16px rgba(26,58,92,0.09);
  --shadow-lg:  0 8px 40px rgba(26,58,92,0.14);
  --radius:     10px;
  --radius-lg:  16px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --page-width: 1080px;
  --page-pad:   32px;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: #f0f2f4;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: all 0.22s ease; }
a:hover { color: var(--navy); }
ul { list-style: none; }

/* ============================================
   PAGE BOX — centered white container
============================================ */
.page-box {
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 60px rgba(26,58,92,0.10);
  min-height: 100vh;
}

.inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.18; color: var(--text-dark); }
h2 { font-family: var(--font-heading); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.25; color: var(--text-dark); }
h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--text-dark); }
p { color: var(--text-mid); margin-bottom: 0.85rem; font-size: 0.95rem; }
p:last-child { margin-bottom: 0; }

/* ============================================
   BUTTONS (usable in Elementor via CSS classes)
============================================ */
.btn,
.elementor-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.22s ease; text-decoration: none; white-space: nowrap;
}
.btn-teal, .elementor-button-teal {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-light); border-color: var(--teal-light); color: var(--white); }
.btn-outline-white {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--green-dark); }
.btn-outline-navy {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ============================================
   HEADER
============================================ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.22s ease;
}
#site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
  max-width: var(--page-width); margin: 0 auto; padding: 0 var(--page-pad);
}

.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 90px; width: auto; object-fit: contain; }

/* Nav */
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 7px 13px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-mid); white-space: nowrap;
}
.main-nav a:hover { color: var(--navy); background: var(--teal-pale); }
.main-nav .current-menu-item > a {
  color: var(--navy); font-weight: 700;
  border-bottom: 2px solid var(--teal);
  border-radius: 0; padding-bottom: 5px;
}

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; }

/* ============================================
   ELEMENTOR — remove default padding on full-width
============================================ */
.elementor-section.elementor-section-full_width { max-width: 100%; }

/* Make Elementor sections respect page-box width naturally */
.elementor-section .elementor-container {
  max-width: var(--page-width) !important;
}

/* Elementor edit mode: ensure page box shows correctly */
body.elementor-editor-active .page-box,
body.elementor-editor-preview .page-box {
  box-shadow: none;
  max-width: 100%;
}

/* ============================================
   MAIN CONTENT AREA
============================================ */
#page-content {
  min-height: 60vh;
}

/* Remove Elementor top margin on first section */
.elementor-section:first-child {
  margin-top: 0 !important;
}

/* ============================================
   CONTACT BAR (in footer.php — always visible)
============================================ */
#contact-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.contact-bar-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.contact-info strong {
  display: block; font-size: 0.77rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 2px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.contact-info span { font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }
.contact-info a { color: var(--text-mid); }
.contact-info a:hover { color: var(--teal); }

/* ============================================
   FOOTER
============================================ */
#site-footer {
  background: #162030;
  padding: 22px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: var(--page-width); margin: 0 auto; padding: 0 var(--page-pad);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-links a:hover { color: white; }
.footer-tagline {
  font-family: var(--font-heading); font-style: italic;
  font-size: 0.95rem; color: rgba(255,255,255,0.45);
  margin: 0;
}
.footer-heart { color: var(--teal-light); font-size: 1.1rem; }

/* ============================================
   REVEAL ANIMATION
============================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 600px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block; position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
    width: min(var(--page-width), 100%);
    background: var(--white); border: 1px solid var(--border);
    padding: 14px var(--page-pad); box-shadow: var(--shadow); z-index: 999;
  }
  .main-nav.open ul { flex-direction: column; gap: 2px; }
  .menu-toggle { display: flex; }
  .contact-bar-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 860px) {
  .contact-bar-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   PAGE CONTENT STYLES (used by all pages)
============================================ */

/* Eyebrow label */
.dv-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}

/* Buttons used inside page content */
.dv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.22s ease; text-decoration: none; white-space: nowrap;
}
.dv-btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.dv-btn-teal:hover { background: var(--teal-light); border-color: var(--teal-light); color: #fff; }
.dv-btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.dv-btn-outline-white:hover { background: #fff; color: var(--green-dark); }
.dv-btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.dv-btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ============================================
   HERO SECTION
============================================ */
.dv-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
  background: var(--cream);
}
.dv-hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 44px 64px 40px;
}
.dv-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 700; line-height: 1.15;
  color: var(--navy); margin-bottom: 18px;
}
.dv-teal { color: var(--teal); }
.dv-hero-sub {
  font-size: 0.97rem; color: var(--text-mid);
  margin-bottom: 28px; line-height: 1.8; max-width: 380px;
}
.dv-hero-img { position: relative; overflow: hidden; }
.dv-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dv-hero-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--cream) 0%, transparent 18%);
}

/* ============================================
   3-COLUMN INFO GRID
============================================ */
.dv-info-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 40px;
}
.dv-col { padding: 0 28px; }
.dv-col:first-child { padding-left: 0; }
.dv-col:last-child  { padding-right: 0; }
.dv-col + .dv-col   { border-left: 1px solid var(--border); }

.dv-col-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 2px solid var(--teal-pale);
}
.dv-col-head span { font-size: 1.3rem; }
.dv-col-head h3 { font-size: 1.05rem; color: var(--navy); margin: 0; font-family: var(--font-heading); font-weight: 700; }

/* Checklist */
.dv-checklist { margin-top: 10px; }
.dv-checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 0.875rem; color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.dv-checklist li:last-child { border-bottom: none; }
.dv-checklist li::before {
  content: '✓'; flex-shrink: 0;
  width: 19px; height: 19px;
  background: var(--teal); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}

/* Service rows */
.dv-services { margin-top: 6px; }
.dv-service-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 6px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 7px; font-size: 0.875rem; color: var(--text-dark); font-weight: 500;
  transition: all 0.2s;
}
.dv-service-row:hover { border-color: var(--teal); background: var(--teal-pale); }

.dv-mehr {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; color: var(--teal); font-size: 0.875rem; font-weight: 600;
}
.dv-mehr:hover { gap: 10px; color: var(--navy); }

.dv-home-img {
  width: 100%; height: 165px; object-fit: cover;
  border-radius: var(--radius); margin-top: 14px;
}

/* ============================================
   TEAM BANNER
============================================ */
.dv-team-banner {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 340px; overflow: hidden;
  background: var(--green-dark);
}
.dv-team-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 44px 56px 40px;
}
.dv-team-text h2 {
  color: white; font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-bottom: 12px;
}
.dv-team-text p { color: rgba(255,255,255,0.8); margin-bottom: 24px; font-size: 0.93rem; line-height: 1.8; }
.dv-team-img { overflow: hidden; }
.dv-team-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ============================================
   LEISTUNGEN PAGE CARDS
============================================ */
.dv-leistung-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: 12px;
  transition: all 0.22s;
}
.dv-leistung-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.dv-leistung-icon {
  font-size: 1.6rem; flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--teal-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.dv-leistung-card h3 { color: var(--navy); margin-bottom: 6px; font-family: var(--font-heading); }

/* ============================================
   PAGE HERO BANNER (inner pages)
============================================ */
.dv-page-hero { text-align: center; }
.dv-page-hero h1 { font-family: var(--font-heading); }

/* ============================================
   RESPONSIVE — PAGE CONTENT
============================================ */
@media (max-width: 860px) {
  .dv-hero { grid-template-columns: 1fr; min-height: auto; }
  .dv-hero-content { padding: 44px 28px 36px; }
  .dv-hero-img { min-height: 280px; }
  .dv-hero-img::before { background: linear-gradient(to bottom, var(--cream) 0%, transparent 24%); }

  .dv-info-grid { grid-template-columns: 1fr; padding: 40px 28px; }
  .dv-col { padding: 0; }
  .dv-col + .dv-col { border-left: none; border-top: 1px solid var(--border); padding-top: 28px; margin-top: 8px; }

  .dv-team-banner { grid-template-columns: 1fr; }
  .dv-team-img { min-height: 240px; order: -1; }
  .dv-team-text { padding: 40px 28px; }
}

/* ============================================
   BEWERBUNG FORM STYLES
============================================ */
.dv-apply-form { display: flex; flex-direction: column; gap: 0; }

.dv-form-group { margin-bottom: 18px; }

.dv-form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.83rem; font-weight: 700;
  color: var(--text-dark); letter-spacing: 0.01em;
}

.dv-form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-dark); background: var(--white);
  outline: none; transition: border-color 0.2s ease;
  appearance: none; -webkit-appearance: none;
}
.dv-form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,157,143,0.12); }
.dv-form-input::placeholder { color: var(--text-light); }

textarea.dv-form-input { resize: vertical; min-height: 110px; }

select.dv-form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8298' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Upload area */
.dv-upload-area {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 32px 20px; text-align: center;
  cursor: pointer; transition: all 0.22s ease;
  background: var(--white);
}
.dv-upload-area:hover { border-color: var(--teal); background: var(--teal-pale); }
.dv-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.dv-upload-text { font-size: 0.9rem; color: var(--text-mid); margin: 0 0 4px; }
.dv-upload-hint { font-size: 0.78rem; color: var(--text-light); margin: 0; }

@media (max-width: 600px) {
  .dv-apply-form [style*="grid-template-columns:1fr 1fr"] {
    display: flex !important; flex-direction: column;
  }
}

/* ============================================
   CONTACT FORM 7 — Pixel-perfect Bewerbungsformular
   Matches the WPForms screenshot design exactly
============================================ */

/* Form wrapper */
.dv-cf7-form,
.wpcf7-form {
  background: var(--white);
  font-family: var(--font-body);
}

/* Form title block */
.dv-cf7-title {
  margin-bottom: 32px;
}
.dv-cf7-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.dv-cf7-title p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
}

/* Field group */
.dv-cf7-group {
  margin-bottom: 24px;
}

/* Two-column row */
.dv-cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.dv-cf7-row .dv-cf7-group {
  margin-bottom: 0;
}

/* Labels — bold, navy, matches screenshot */
.dv-cf7-group > label,
.dv-cf7-row .dv-cf7-group > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.3;
}
.dv-cf7-group > label span {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.82rem;
}

/* All text inputs, email, tel, date, select, textarea */
.dv-cf7-form input[type="text"],
.dv-cf7-form input[type="email"],
.dv-cf7-form input[type="tel"],
.dv-cf7-form input[type="date"],
.dv-cf7-form select,
.dv-cf7-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d0dbe6;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  line-height: 1.5;
}
.dv-cf7-form input::placeholder,
.wpcf7-form input::placeholder,
.dv-cf7-form textarea::placeholder,
.wpcf7-form textarea::placeholder {
  color: #a8b8c8;
  font-size: 0.9rem;
}
.dv-cf7-form input:focus,
.dv-cf7-form select:focus,
.dv-cf7-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.13);
}

/* Textarea */
.dv-cf7-form textarea,
.wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* Select — with chevron arrow matching screenshot */
.dv-cf7-form select,
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%232a9d8f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
  color: var(--text-dark);
}
/* Placeholder option */
.dv-cf7-form select option[value=""],
.wpcf7-form select option[value=""] {
  color: #a8b8c8;
}

/* ---- FILE UPLOAD — drag-drop area matching screenshot ---- */
.dv-cf7-upload-wrap {
  position: relative;
}

/* CF7 wraps file input in a span — make both span + input invisible but accessible */
.dv-cf7-upload-wrap .wpcf7-form-control-wrap,
.dv-cf7-upload-wrap .wpcf7-form-control-wrap span {
  position: static !important;
  display: block;
}
/* Hide file input — triggered via JS click from the dropzone */
.dv-cf7-form input[type="file"],
.wpcf7-form input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  top: 0; left: 0;
  border: none;
  padding: 0;
  margin: 0;
}
/* The visible drag-drop zone */
.dv-cf7-dropzone {
  border: 2px dashed #c8d8e4;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.dv-cf7-dropzone:hover,
.dv-cf7-dropzone.dragover {
  border-color: var(--teal);
  background: var(--teal-pale);
}
.dv-cf7-dropzone-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 4px;
  opacity: 0.55;
}
.dv-cf7-dropzone-text {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.5;
}
.dv-cf7-dropzone-text strong {
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
}
.dv-cf7-dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}
.dv-cf7-dropzone-filename {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin: 0;
  display: none;
}
.dv-cf7-dropzone-filename::before { content: '✓ '; }

/* ---- DATENSCHUTZ CHECKBOX ---- */
.dv-cf7-checkbox {
  margin-bottom: 24px;
}
.dv-cf7-checkbox .wpcf7-acceptance,
.dv-cf7-checkbox .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}
.dv-cf7-checkbox input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin-top: 2px !important;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
  border: 1.5px solid #c8d8e4;
  border-radius: 4px;
  padding: 0 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
.dv-cf7-checkbox .wpcf7-list-item-label,
.wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  cursor: pointer;
}
.dv-cf7-checkbox a,
.wpcf7-acceptance a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.dv-cf7-checkbox a:hover,
.wpcf7-acceptance a:hover {
  text-decoration: underline;
}

/* ---- SUBMIT BUTTON — full width teal ---- */
.dv-cf7-form input[type="submit"],
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  width: 100%;
  padding: 17px 24px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s ease;
  letter-spacing: 0.02em;
  display: block;
  margin-top: 4px;
}
.dv-cf7-form input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover {
  background: #238a7e;
}

/* ---- VALIDATION & RESPONSE MESSAGES ---- */
.wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 5px;
  display: block;
  font-weight: 500;
}
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  border: none !important;
  font-family: var(--font-body) !important;
}
.wpcf7-mail-sent-ok {
  background: #d4edda !important;
  color: #155724 !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background: #f8d7da !important;
  color: #721c24 !important;
}
.wpcf7-spam-blocked {
  background: #fff3cd !important;
  color: #856404 !important;
}
.wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

.kontakt-form{
	background: var(--cream)
}


/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .dv-cf7-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dv-cf7-row .dv-cf7-group {
    margin-bottom: 24px;
  }
}

html, body { overflow-x: hidden !important; }
.page-box { overflow-x: hidden !important; }

@media (max-width: 768px) {
  * { max-width: 100% !important; box-sizing: border-box !important; }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important; flex-direction: column !important; gap: 20px !important;
  }
  [style*="padding:60px 40px"], [style*="padding: 60px 40px"],
  [style*="padding:56px 40px"], [style*="padding: 56px 40px"] {
    padding: 32px 20px !important;
  }
  .dv-page-hero { padding: 40px 20px !important; }
  .contact-bar-grid { grid-template-columns: 1fr !important; }
  .dv-cf7-row { grid-template-columns: 1fr !important; }
  img { width: 100% !important; height: auto !important; }
}

/* Logo mobile fix */
@media (max-width: 768px) {
  .site-logo img {
    height: 70px !important;
    width: auto !important;
    max-width: 180px !important;
  }
  .header-inner {
    height: 70px !important;
  }
  #site-header ~ #page-content .elementor-section:first-child,
  #site-header + main > *:first-child {
    margin-top: 0 !important;
  }
}

/* Date field mobile fix — iOS Safari */
input[type="date"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  min-height: 48px !important;
  padding: 13px 16px !important;
  font-size: 0.92rem !important;
  color: var(--text-dark) !important;
  background: var(--white) !important;
  border: 1.5px solid #d0dbe6 !important;
  border-radius: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Show placeholder text on empty date field for iOS */
input[type="date"]:not([value]):not(:focus) {
  color: #a8b8c8 !important;
}

/* Fix date field inside CF7 row on mobile */
@media (max-width: 640px) {
  input[type="date"] {
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }
}

@media (max-width: 640px) {
  .dv-cf7-form input,
  .dv-cf7-form select,
  .dv-cf7-form textarea,
  .wpcf7-form input,
  .wpcf7-form select,
  .wpcf7-form textarea {
    font-size: 16px !important;
  }
}

