/*
 * ATV Centrum — kontakt.css — Kontakt
 * Závisí na: base.css, components.css
 */


/* ============================================
   CONTACT PAGE — Main Info Grid
   ============================================ */
.contact-main { padding: 80px 0 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact info column */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.contact-info-card h2 {
  font-family: var(--font-primary); font-weight: 700;
  font-size: 24px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}
.contact-info-card .card-subtitle {
  font-size: 15px; color: var(--gray-400);
  margin-bottom: 32px; line-height: 1.6;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item:first-of-type { padding-top: 0; }
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-light);
  border-radius: 12px;
  color: var(--teal);
  transition: all var(--transition-base);
}
.contact-item:hover .contact-icon {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.05);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-detail h4 {
  font-family: var(--font-primary); font-weight: 700;
  font-size: 14px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray-400);
  margin-bottom: 4px;
}
.contact-detail p, .contact-detail a {
  font-size: 16px; color: var(--navy); line-height: 1.6;
}
.contact-detail a:hover { color: var(--teal); }
.contact-phones {
  display: flex; flex-direction: column; gap: 4px;
}
.contact-phones a {
  font-size: 20px; font-weight: 700; color: var(--navy);
  letter-spacing: 0.5px;
}
.contact-phones a:hover { color: var(--teal); }

/* Opening hours */
.hours-grid {
  display: flex; flex-direction: column; gap: 6px;
}
.hours-row {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  font-size: 15px;
}
.hours-row .day { color: var(--gray-500); font-weight: 500; }
.hours-row .time { color: var(--navy); font-weight: 700; }
.hours-row.today {
  background: var(--teal-light);
  padding: 6px 12px;
  border-radius: 8px;
  margin: 0 -12px;
}
.hours-row.today .day { color: var(--teal-dark); }
.hours-row.today .time { color: var(--teal); }

/* Map column */
.contact-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.contact-map-wrap iframe {
  width: 100%;
  flex: 1;
  min-height: 400px;
  border: none;
}
.map-directions-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: var(--navy);
  color: var(--white);
}
.map-directions-bar span {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
}
.map-directions-bar a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  color: var(--teal-hover);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.map-directions-bar a:hover { color: var(--white); }
.map-directions-bar a svg { width: 16px; height: 16px; }

/* ============================================
   DEALERS / PARTNERS
   ============================================ */
.dealers-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.dealers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.dealer-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.dealer-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.dealer-card:hover::before { transform: scaleX(1); }
.dealer-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.dealer-card h3 {
  font-family: var(--font-primary); font-weight: 700;
  font-size: 18px; color: var(--navy);
  text-transform: uppercase; margin-bottom: 4px;
}
.dealer-card .dealer-subtitle {
  font-size: 13px; color: var(--gray-400);
  margin-bottom: 20px; font-weight: 500;
}
.dealer-info-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; font-size: 14px; color: var(--gray-500);
  line-height: 1.5;
}
.dealer-info-row:last-child { margin-bottom: 0; }
.dealer-info-row svg {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 2px; color: var(--teal);
}
.dealer-info-row a {
  color: var(--teal); font-weight: 600;
}
.dealer-info-row a:hover { color: var(--teal-dark); }

/* ============================================
   COMPANY INFO (Provozovatel)
   ============================================ */
.company-section { padding: 60px 0 80px; }
.company-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}
.company-card .company-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 12px;
}
.company-card h3 {
  font-family: var(--font-primary); font-weight: 700;
  font-size: 22px; color: var(--navy);
  margin-bottom: 6px;
}
.company-card .company-address {
  font-size: 15px; color: var(--gray-500);
  margin-bottom: 20px; line-height: 1.6;
}
.company-meta {
  display: flex; justify-content: center; gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}
.company-meta-item span {
  display: block;
}
.company-meta-item .meta-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-300);
}
.company-meta-item .meta-value {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin-top: 2px;
}
.company-note {
  font-size: 13px; color: var(--gray-400);
  margin-top: 20px; line-height: 1.6;
}

/* ============================================
   SPECIAL HOURS NOTICE
   ============================================ */
.special-hours-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
  border: 1px solid #F0D88A;
  border-left: 4px solid #E8B23F;
  border-radius: 12px;
  position: relative;
}
.special-hours-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: #B8860B;
}
.special-hours-icon svg { width: 22px; height: 22px; }
.special-hours-content { flex: 1; }
.special-hours-content strong {
  display: block; font-size: 14px; font-weight: 700;
  color: #8B6914; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 4px;
}
.special-hours-content p {
  font-size: 15px; color: #6B5310; line-height: 1.5; margin: 0;
}
.special-hours-content p b { color: var(--red); }
.special-hours-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #B8960B; opacity: 0.5;
  transition: opacity var(--transition-base);
}
.special-hours-close:hover { opacity: 1; }
.special-hours-close svg { width: 16px; height: 16px; }

/* ============================================
   CONTACT FORM SECTION
   ============================================ */
.contact-form-section {
  padding: 80px 0;
  background: linear-gradient(170deg, var(--navy) 0%, #0a1520 100%);
  color: var(--white);
}
.contact-form-section .section-label {
  color: var(--teal);
}
.contact-form-section .section-title {
  color: var(--white);
}
.contact-form-section .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group--full {
  margin-bottom: 20px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.contact-form label .required {
  color: var(--teal);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.contact-form select option {
  background: var(--navy);
  color: var(--white);
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(30, 154, 171, 0.2);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* GDPR checkbox */
.form-group--gdpr {
  margin-bottom: 24px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  margin-top: 1px;
  transition: all 0.2s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--teal);
  border-color: var(--teal);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(30, 154, 171, 0.3);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.checkbox-text a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-text a:hover {
  color: var(--white);
}

/* Form message */
.form-message {
  text-align: center;
  padding: 0;
  margin-bottom: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.3s ease;
}
.form-message--success {
  padding: 16px 20px;
  margin-bottom: 20px;
  background: rgba(72, 187, 120, 0.15);
  border: 1px solid rgba(72, 187, 120, 0.3);
  color: #68D391;
}
.form-message--error {
  padding: 16px 20px;
  margin-bottom: 20px;
  background: rgba(229, 62, 62, 0.15);
  border: 1px solid rgba(229, 62, 62, 0.3);
  color: #FC8181;
}

/* Submit button */
.form-actions {
  text-align: center;
}
.contact-form .btn-primary {
  min-width: 220px;
  padding: 16px 40px;
  font-size: 15px;
}
.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   GALLERY — photos grid
   ============================================ */
.gallery-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery-item:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  color: var(--gray-300);
}
.gallery-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-map-wrap { min-height: 400px; }
  .dealers-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .header-inner { height: 70px; }
  .page-hero { margin-top: 70px; padding: 60px 0 44px; }
  .logo img { height: 48px; }
  .contact-main { padding: 60px 0 40px; }
  .contact-info-card { padding: 28px 24px; }
  .contact-form-section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea { font-size: 16px; }
  .dealers-section { padding: 60px 0; }
  .dealers-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .company-card { padding: 32px 24px; }
  .company-meta { flex-direction: column; gap: 16px; }
  .contact-strip-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .social-section { padding: 36px 0; }
  .social-link { width: 48px; height: 48px; }
  .social-link svg { width: 20px; height: 20px; }
  .hours-row { font-size: 14px; }
  .contact-phones a { font-size: 18px; }
}

/* ============================================
   SUCCESS OVERLAY (po odeslání kontaktního formuláře)
   ============================================ */
.preorder-success {
    padding: 80px 0 120px;
}
.preorder-success-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
}
.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: #D1FAE5;
}
.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #059669;
}
.preorder-success-card h2 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 12px;
}
.preorder-success-card p {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 32px;
}
.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-outline-navy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid var(--navy);
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}
.btn-outline-teal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid var(--teal);
    color: var(--teal);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-teal:hover {
    background: var(--teal);
    color: var(--white);
}

@media (max-width: 600px) {
    .preorder-success-card {
        padding: 32px 20px;
    }
    .preorder-success-card h2 {
        font-size: 22px;
    }
}
