/* === Osnovni container === */
.ftf-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: 'Arial', sans-serif;
}

.ftf-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* === Leva strana (slika i naziv) === */
.ftf-left {
  flex: 1 1 40%;
  text-align: center;
}

.ftf-preview {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  border: 2px solid #ddd;
  margin-bottom: 15px;
}

.ftf-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* === Desna strana (forma) === */
.ftf-right {
  flex: 1 1 55%;
}

.ftf-group {
  margin-bottom: 20px;
}

.ftf-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 16px;
}

.ftf-group input,
.ftf-group select,
.ftf-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* === Dugmad === */
button#ftf-izracunaj,
button#ftf-submit {
  background-color: #1a1a1a;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button#ftf-izracunaj:hover,
button#ftf-submit:hover {
  background-color: #444;
}

/* === Rezultati === */
.ftf-result {
  background-color: #f5f5f5;
  padding: 15px 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-top: 10px;
}

.ftf-result p {
  font-size: 18px;
  font-weight: bold;
  margin: 8px 0;
  color: #333;
}

.ftf-result #ftf-area,
.ftf-result #ftf-price {
  color: #c40000;
  font-size: 22px;
}

.ftf-error {
  color: red;
  margin-top: 10px;
  font-weight: bold;
}

/* === Napomena ispod montaže === */
.ftf-note {
  font-size: 13px;
  color: #666;
  display: block;
  margin-top: 5px;
}

/* === Popup === */
#ftf-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ftf-popup-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  position: relative;
}

.ftf-popup-content h3 {
  color: #28a745;
  font-size: 22px;
  margin-bottom: 10px;
}

.ftf-popup-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 0;
}

.ftf-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  color: #888;
  cursor: pointer;
}

/* === Responsive dizajn === */
@media (max-width: 768px) {
  .ftf-container {
    flex-direction: column;
  }

  .ftf-left,
  .ftf-right {
    flex: 1 1 100%;
  }

  .ftf-title {
    font-size: 20px;
  }

  .ftf-result p {
    font-size: 16px;
  }

  .ftf-result #ftf-area,
  .ftf-result #ftf-price {
    font-size: 20px;
  }
}
/* Wrapper podešavanje */
.ftf-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Leva strana - slika */
.ftf-left {
  flex: 1 1 40%;
  text-align: center;
}
.ftf-left img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.ftf-title {
  margin-top: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* Desna strana - forma */
.ftf-right {
  flex: 1 1 55%;
}

/* Grupa */
.ftf-group {
  margin-bottom: 20px;
}
.ftf-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}
.ftf-group input,
.ftf-group select,
.ftf-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.ftf-group input:focus,
.ftf-group textarea:focus {
  outline: none;
  border-color: #000;
}

/* Izračunaj i Poruči dugmad */
#ftf-izracunaj,
#ftf-submit {
  background-color: #1e1e1e;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
#ftf-izracunaj:hover,
#ftf-submit:hover {
  background-color: #333;
}

/* Rezultat kvadrature i cene */
.ftf-result {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #ccc;
  margin-top: 10px;
  font-size: 18px;
  color: #222;
}
#ftf-area,
#ftf-price {
  font-size: 24px;
  font-weight: bold;
  color: #b91c1c;
}

/* Popup */
#ftf-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
}
.ftf-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
}

/* Responsivnost */
@media screen and (max-width: 768px) {
  .ftf-container {
    flex-direction: column;
  }
  .ftf-left, .ftf-right {
    flex: 1 1 100%;
  }
}
.ftf-kategorija-opis {
  background: #f8f8f8;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid #bbb;
  border-radius: 8px;
}
.ftf-kategorija-opis h3 {
  margin-top: 0;
  color: #333;
}
.ftf-kategorija-opis p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}
.ftf-category-description {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 16px;
  color: #333;
}

.ftf-category-description h3 {
  margin-top: 0;
  color: #111;
  font-size: 20px;
}
/* Checkout stranica - dark & modern style */
.ftf-wrapper {
  background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
  padding: 30px;
  color: #fff;
}

.ftf-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.ftf-left {
  flex: 1 1 40%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.ftf-preview {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.ftf-title {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.ftf-category-description {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ftf-right {
  flex: 1 1 55%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.ftf-group {
  margin-bottom: 15px;
}

.ftf-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.ftf-group input,
.ftf-group select,
.ftf-group textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ftf-group input:focus,
.ftf-group select:focus,
.ftf-group textarea:focus {
  outline: 2px solid #ff90e8;
}

.ftf-result p {
  font-size: 1.1rem;
  margin: 5px 0;
}

#ftf-area,
#ftf-price {
  color: #ffd700;
  font-size: 1.4rem;
  font-weight: bold;
}

#ftf-izracunaj,
#ftf-submit {
  display: inline-block;
  background-color: #ff90e8;
  color: #1a1a1a;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

#ftf-izracunaj:hover,
#ftf-submit:hover {
  background-color: #f384db;
  color: #ffffff;
}

/* Popup stil */
#ftf-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ftf-popup-content {
  background: #1a1a1a;
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 144, 232, 0.4);
}

.ftf-popup-content button {
  margin-top: 15px;
  background: #ff90e8;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

.ftf-popup-content button:hover {
  background: #f384db;
}
/* Stil za opis kategorije */
.ftf-category-description {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  
  color: #ddd;
  box-shadow: 0 0 12px rgba(255, 144, 232, 0.15);
}

.ftf-category-description h3 {
  color: #ffd700;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.ftf-category-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: #ccc;
}
/* Lightbox pozadina */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

/* Slika u lightbox-u */
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Efekat prelaza */
.lightbox-overlay.fade-in {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Lightbox overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  animation: fadeIn 0.3s ease-in-out;
  background: #fff;
  padding: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
#ftf-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#ftf-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}
/* Dugme Naruči u lightbox-u */
.lb-order-btn {
  display: inline-block;
  background-color: #ff90e8;
  color: #1a1a1a;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 25px;
  margin-top: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.lb-order-btn:hover {
  background-color: #f384db;
  color: #ffffff;
}
/* Strelice u lightbox-u */
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.lb-prev:hover, .lb-next:hover {
  background: rgba(0,0,0,0.6);
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }
/* LIGHTBOX STIL */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    font-size: 48px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    transform: translateY(-50%);
}

.lb-prev:hover, .lb-next:hover {
    background: rgba(255,255,255,0.2);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-order-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff90e8;
    color: #1a1a1a;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.lb-order-btn:hover {
    background: #f384db;
    color: #fff;
}
/* Sva input polja kalkulatora */
#ftf-width,
#ftf-height,
#ftf-type,
#ftf-install,
#ftf-ime,
#ftf-email,
#ftf-adresa,
#ftf-telefon,
#ftf-napomena {
  background-color: rgba(0, 0, 0, 0.75) !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Placeholder boja */
#ftf-width::placeholder,
#ftf-height::placeholder,
#ftf-ime::placeholder,
#ftf-email::placeholder,
#ftf-adresa::placeholder,
#ftf-telefon::placeholder,
#ftf-napomena::placeholder {
  color: #ccc !important;
}

/* Fokus efekat */
#ftf-width:focus,
#ftf-height:focus,
#ftf-type:focus,
#ftf-install:focus,
#ftf-ime:focus,
#ftf-email:focus,
#ftf-adresa:focus,
#ftf-telefon:focus,
#ftf-napomena:focus {
  border-color: #FFD700 !important;
  outline: none !important;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5) !important;
}
