* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #1a1a1a;
  font-family: "Cormorant Garamond", serif;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.top-phone {
  position: fixed;
  top: 28px;
  left: 44px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f2ecdf;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.top-phone-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2a2118;
  background-color: #f2ecdf;
  border-radius: 50%;
  padding: 4px;
}

.top-phone-icon svg {
  display: block;
  fill: currentColor;
}

.top-phone:hover,
.top-phone:focus-visible {
  color: #ffffff;
}

.top-phone:focus-visible {
  outline: 2px solid #c3a575;
  outline-offset: 6px;
  border-radius: 4px;
}

/* Center container that scales and aligns with the background image content */
.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.text-top {
  position: absolute;
  top: 56%; /* Pushed down slightly below the logo */
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Cormorant Garamond", serif;
  font-size: 5vw;
  font-weight: 600;
  color: #ffffff; /* Clean white color */
  transition: opacity 0.8s ease-in-out;
  opacity: 1;
  white-space: nowrap;
}

.text-top.fade-out {
  opacity: 0;
}

.text-bottom {
  position: absolute;
  top: 75%; /* Pushed down slightly further below Cok Yakinda */
  left: 62%; /* Shifted slightly to the right */
  transform: translate(-50%, -50%);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 4vw;
  font-weight: 400;
  color: #ffffff; /* Clean white color */
  letter-spacing: 0.05em;
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* Responsive Adjustments for Mobile & Tablets */
@media (max-width: 1024px) {
  .text-top {
    font-size: 5.2vw;
    top: 46%;
  }
  .text-bottom {
    font-size: 4.5vw;
    top: 77.5%;
  }
}

@media (max-width: 768px) {
  .top-phone {
    top: 22px;
    left: 24px;
    font-size: 24px;
    gap: 8px;
  }

  .top-phone-icon {
    width: 26px;
    height: 26px;
  }

  .text-top {
    font-size: 6.5vw;
    top: 46%;
  }
  .text-bottom {
    font-size: 5.5vw;
    top: 78%;
  }
}

@media (max-width: 480px) {
  .top-phone {
    top: 18px;
    left: 18px;
    font-size: 20px;
  }

  .top-phone-icon {
    width: 22px;
    height: 22px;
  }

  .text-top {
    font-size: 9vw;
    top: 55%;
  }

  .text-bottom {
    font-size: 6.5vw;
    top: 78.5%;
  }
}

/* --- Slide-out Contact Form Styles --- */
.contact-sidebar {
  position: fixed;
  top: 50%;
  right: 0; /* Hidden by default, adjust based on form width */
  width: 320px;
  transform: translateY(-50%);
  background-color: #ffffff;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0px 0 0 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.contact-sidebar.closed {
  right: -320px;
}

.sidebar-toggle {
  position: absolute;
  left: -40px;
  top: 0;
  background-color: #c3a575; /* Golden color matching the theme */
  width: 40px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  color: #ffffff;
  transition: background-color 0.3s;
}

.sidebar-toggle:hover {
  background-color: #b09163;
}

.toggle-icon {
  font-size: 20px;
  margin-bottom: 10px;
  transition: transform 0.4s;
}

.contact-sidebar.closed .toggle-icon {
  transform: rotate(180deg);
}

.toggle-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 16px;
  letter-spacing: 0.09em;
  font-weight: 500;
}

.sidebar-content {
  padding: 30px 25px;
  height: 100%;
  overflow-y: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-group {
  width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background-color: transparent;
  font-size: 13px;
  color: black;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="tel"]::placeholder,
.contact-form select::placeholder,
.contact-form textarea::placeholder {
  color: black;
  font-weight: 600;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right center;
  font-weight: 600;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: #c3a575;
}

.checkbox-group {
  margin-top: 5px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: black;
  line-height: 1.4;
  user-select: none;
  position: relative;
  padding-left: 20px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 12px;
  width: 12px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  transition: all 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: #c3a575;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #c3a575;
  border-color: #c3a575;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 4px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.submit-btn {
  margin-top: 10px;
  padding: 8px 20px;
  border: 1px solid black;
  background-color: transparent;
  color: black;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
  font-weight: 900;
}

.submit-btn:hover {
  background-color: #c3a575;
  color: #fff;
  border-color: #c3a575;
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  display: none;
}

.form-status.success {
  color: #207245;
}

.form-status.error {
  color: #b42318;
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.result-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 14, 0.68);
  backdrop-filter: blur(5px);
}

.result-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 32px 28px;
  background: #fffaf2;
  border: 1px solid rgba(195, 165, 117, 0.55);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color: #241d18;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}

.result-modal.is-open .result-modal-dialog {
  transform: translateY(0) scale(1);
}

.result-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6e6254;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.result-modal-close:hover,
.result-modal-close:focus-visible {
  color: #241d18;
}

.result-modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c3a575;
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.result-modal.error .result-modal-icon {
  background: #b42318;
}

.result-modal-title {
  margin: 0 0 10px;
  color: #241d18;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.result-modal-message {
  margin: 0;
  color: #5d5247;
  font-size: 15px;
  line-height: 1.55;
}

.result-modal-button {
  margin-top: 24px;
  min-width: 118px;
  padding: 11px 22px;
  border: 1px solid #c3a575;
  border-radius: 8px;
  background: #c3a575;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.result-modal-button:hover,
.result-modal-button:focus-visible {
  background: #aa8b5c;
  border-color: #aa8b5c;
}

@media (max-width: 480px) {
  .result-modal {
    padding: 18px;
  }

  .result-modal-dialog {
    padding: 32px 22px 24px;
  }

  .background {
    background-image: url("../images/bg_mobil.jpg");
  }
}
