:root {
  --muqi-teqsti: #655449;
  --header: #69473c;
  --gia-teqsti: #c0b3ac;
  --kanis-feri: #fff6ed;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--kanis-feri);
  color: var(--muqi-teqsti);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 650px;
  margin: 40px auto;
  background-color: transparent;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.081);
  margin-top: 3em;
}

h1 {
  text-align: center;
  color: var(--header);
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

/* Input styles */
input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gia-teqsti);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 1em;
  background-color: #fdfbf9;
  color: var(--muqi-teqsti);
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus {
  border-color: var(--header);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Custom select styles */
.custom-select-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.custom-select {
  position: relative;
  user-select: none;
  background-color: #fdfbf9;
  border: 1px solid var(--gia-teqsti);
  border-radius: 8px;
  padding: 12px;
  font-size: 1em;
  color: var(--muqi-teqsti);
  cursor: pointer;
  transition: border-color 0.3s;
}

.custom-select:hover {
  border-color: var(--header);
}

.custom-select-trigger::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muqi-teqsti);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid var(--gia-teqsti);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

.custom-select.open .custom-options {
  max-height: 200px;
  opacity: 1;
  overflow-y: auto;
}

.custom-option {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background-color: var(--kanis-feri);
}

/* Submit Button */
button {
  background-color: var(--header);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

button:hover {
  background-color: #7a5345;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .container {
    margin: 20px;
    padding: 20px;
  }

  input,
  textarea {
    font-size: 0.95em;
  }

  .custom-select {
    font-size: 0.95em;
  }

  button {
    font-size: 15px;
  }
}

/* Native picker icons styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(40%) sepia(30%) saturate(300%) hue-rotate(310deg);
  cursor: pointer;
}
