/* GLOBAL FIX */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

/* CONTAINER */
.container {
  width: 100%;
  padding: 0 20px;
}

/* HERO */
.franchise-page {
  padding: 80px 20px;
  text-align: center;
  background: #ffb400;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  color: #380175;
  margin-bottom: 15px;
}

.page-desc {
  max-width: 700px;
  margin: auto;
  color: #ffffff;
  font-size: 18px;
}

/* FORM */
.franchise-form {
  padding: 80px 20px;
  background: white;
  text-align: center;
  color: #380175;
}

.franchise-form form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.franchise-form input,
.franchise-form textarea,
.franchise-form select {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  width: 100%;
}

.franchise-form button {
  background: #380175;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.franchise-form button:hover {
  background: #ffb400;
}

/* ADVANTAGES */
.franchise-advantages {
  padding: 80px 20px;
  background: white;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.advantage-box {
  background: #fafafa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.advantage-box h3 {
  color: #222;
  margin-bottom: 10px;
}

/* PACKAGES */
.franchise-packages {
  padding: 80px 15px;
  background: #ffb400;
  text-align: center;
}

.franchise-packages h2 {
  color: #380175;
  margin: 9px;
  font-size: 35px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.package-box {
  background: #380175;
  padding: 30px;
  border-radius: 10px;
}

.package-box h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 28px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: #FFC107;
  margin-bottom: 20px;
}

.package-box ul {
  list-style: none;
  padding: 0;
}

.package-box li {
  padding: 8px 0;
  border-bottom: 1px solid #481d93;
  color: #ffffff;
}

/* INVESTMENT */
.investment-table {
  padding: 80px 20px;
  background: #380175;
  text-align: center;
  overflow-x: auto;
}

.investment-table h2 {
  color: #ffffff;
  margin: 10px;
}

table {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-collapse: collapse;
}

th {
  background: #2d0559;
  color: #ffffff;
  padding: 15px;
}

td {
  padding: 14px;
  border-bottom: 1px solid #440a85;
  color: #ffffff;
}

/* FLEX AREA */
.investment-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.investment-info {
  width: 100%;
  max-width: 400px;
}

/* GALLERY */
.investment-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* POPUP */
.image-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-popup img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.popup-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* KVKK */
.kvkk-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.kvkk-content {
  background: white;
  padding: 30px;
  max-width: 500px;
  border-radius: 10px;
}

.kvkk-text {
  height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
  border: 1px solid #eee;
  padding: 15px;
}

#kvkkAccept {
  background: #e21b1b;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: not-allowed;
  opacity: 0.6;
}

#kvkkAccept.active {
  cursor: pointer;
  opacity: 1;
}

/* INPUT VALIDATION */
.valid {
  border-color: #28a745;
}

.invalid {
  border-color: #dc3545;
}

/* LINKS */
.call-number a {
  text-decoration: none;
  color: inherit;
}

.call-number a:hover {
  color: #ffffff;
}

/* 📱 MOBILE */
@media (max-width:768px) {

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .investment-flex {
    flex-direction: column;
  }

  .investment-gallery {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: auto;
  }

}