:root {
    --background-nacrisferi: #506580;
    --gia-nacrisferi: #9ca0ab;
    --gia-teqsti: #e0dfe6;
    --muqi-lurji: #111827;
    --gia-lurji: #2563eb;
    --plastic: rgba(80, 101, 128, 0.84);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--muqi-lurji);
}

.main-wrapper {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 5em;
  width: 100%;
  background: var(--muqi-lurji);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px 16px rgba(255, 255, 255, 0.102);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.image-side {
  flex: 1;
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.form-side {
  flex: 1;
  padding: 40px 30px;
}

.container {
  width: 100%;
}

h1 {
  color: var(--gia-teqsti);
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.3em;
  font-weight: bold;
}

/* მოდალის ფონი */
.modal {
  display: none;
  position: fixed; /* ან fixed */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  inset: 0;
  align-items: center;
  justify-content: center;
  animation: slideUp 0.5s ease-out forwards; /* ამატეთ forwards */
  backdrop-filter: blur(4px);
  transform-origin: center bottom;
  
}

/* შიგთავსი */
.modal-content {
  background: var(--background-nacrisferi);
  color: var(--gia-teqsti);
  padding: 2em 3em;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  position: relative;
  animation: slideUp 0.4s ease;
}

/* დახურვის ღილაკი */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: var(--gia-teqsti);
  transition: 0.3s;
}
.close-btn:hover {
  color: #111827;
}

/* სიები */
.modal-content h2 {
  margin-bottom: 15px;
  color: var(--gia-teqsti);
}
.modal-content ol li {
  margin-bottom: 10px;
}
.modal-content strong {
  color: var(--muqi-lurji);
}


/* ანიმაცია */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.btcenter {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btcenter button {
  border: none;
  background-color: var(--plastic);
  color: white;
  height: 42px;
  padding: 0 1em;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}
.btcenter button:hover {
  background-color: #617896;
}

.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  color: var(--gia-nacrisferi);
  margin-bottom: 5px;
  font-size: 15px;
}

.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="file"] {
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border-bottom: 1px solid white;
  transition: border 0.3s ease;
  outline: none;
  color: white;
}

.input-group input:focus {
  border-color: var(--plastic);
  outline: none;
}

/* Custom Dropdown */
.dropdown {
  position: relative;
  user-select: none;
}

.dropdown .selected {
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border-bottom: 1px solid white;
  transition: border 0.3s ease;
  outline: none;
  color: white;
}

.dropdown .dropdown-list {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: var(--muqi-lurji);
  border: 2px solid var(--gia-nacrisferi);
  border-radius: 10px;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  overflow-y: scroll;
  color: white;
}

.dropdown .dropdown-list.show::-webkit-scrollbar {
  width: 8px;
  border-radius: 10px;
  background: transparent;
}

.dropdown .dropdown-list.show::-webkit-scrollbar-thumb {
  background-color: var(--plastic);
  border-radius: 10px;
  border: 2px solid transparent; /* სივრცე სკროლის ზოლის გარშემო */
  background-clip: content-box;
}

.dropdown .dropdown-list.show {
  max-height: 300px;
  opacity: 1;
  border-radius: 10px;
}

.dropdown-item {
  padding: 10px;
  cursor: pointer;
  color: var(--muqi-lurji);
  color: white;
}

.dropdown-item:hover {
  background: var(--background-nacrisferi);
  color: white;
}

#button {
  width: 100%;
  height: 50px;
  background-color: var(--plastic);
  font-size: 16px;
  font-weight: bold;
  color: white;
  transition: all .5s ease;
  border-radius: 10px;
  outline: none;
  border: none;
  cursor: pointer;
}

#button:hover {
  background-color: var(--background-nacrisferi);
}

.custom-file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-file-upload label {
  display: block;
  padding: 12px;
  background-color: var(--background-nacrisferi);
  color: white;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-file-upload label:hover {
  background-color: var(--plastic);
}

/* ვმალავ default file inputs */
.custom-file-upload input[type="file"] {
  display: none;
}

input::placeholder {
  color: white;
}

#image-input {
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  position: absolute;
  z-index: -99999;
  left: 99999px;
}

#image-preview {
  display: block;
  max-width: 100px;
  max-height: 48px;
  border-radius: 10px;
  border: 2px solid var(--gia-nacrisferi);
}

.wrappercustom {
  display: flex;
  gap: 2em;
  align-items: center;
  justify-content: start;
  padding: .5em 0 1em 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  margin: 15px 0;
  gap: 10px;
  color: var(--gia-teqsti);
  font-size: 14px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-wrapper a {
  color: var(--gia-nacrisferi);
  text-decoration: underline;
  cursor: pointer;
  transition: color .5s ease;
}

.checkbox-wrapper a:hover {
  color: var(--background-nacrisferi);
}

/* Responsive */
@media (max-width: 768px) {
  .main-wrapper {
    flex-direction: column;
  }

  .image-side {
    height: 250px;
  }

  .form-side {
    padding: 25px;
  }

  h1 {
    font-size: 20px;
  }
}
