/* ===== CUSTOM STYLES FOR CAMBODIANPROPERTY.COM ===== */
/* Only styles that Tailwind cannot handle directly */

/* ── Root Variables — Earthy Brand Palette ── */
:root {
  --primary:       #687F6F;
  --primary-dark:  #234236;
  --primary-light: #DDE5DF;
  --terracotta:    #C8745A;
  --dark:          #1A1A1A;
  --gray:          #7A7A7A;
  --bg:            #F2EEEB;
  --white:         #FFFFFF;
}

/* ── Global ── */

.text-terracotta{
  color: #F37232 !important;
}
.bg-terracotta{
  background-color: #F37232 !important;
}
.bg-primary{
  background-color: #F37232 !important;
}
html {
  box-sizing: border-box;
}
.py-24.px-6.bg-dark{
  background-color: background: #00008B;
  background: linear-gradient(90deg, rgba(0, 0, 139, 1) 0%, rgba(66, 153, 180, 1) 80%);;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── HERO ── */
.max-w-3xl{
  text-align: center;
}
.font-body.text-white.text-lg.leading-relaxed.mb-8{
  color: rgb(255 255 255);
  opacity: 0.6;
  margin-bottom: 0rem;
  margin-top: 2rem;
}
.language-selector select{
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background:#fff;
  border:1px solid #d9d2cb;
  border-radius:12px;
  padding:12px 18px;
  font-size:15px;
  color:#333;
  cursor:pointer;
  outline:none;
  transition:.3s;
}
.language-selector select:hover{
  border-color:#7A8B79;
}
.language-selector select:focus{
  border-color:#7A8B79;
  box-shadow:0 0 0 3px rgba(122,139,121,.15);
}
.language-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}
.language-selector-button {
  background: #fff;
  border: 1px solid #d9d2cb;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #333;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .15s ease;
}
.language-selector-button:hover,
.language-selector-button:focus {
  border-color: #7A8B79;
  box-shadow: 0 0 0 4px rgba(122, 139, 121, 0.12);
}
.language-flag {
  width: 1.4rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  overflow: hidden;
}
.language-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: max-content;
  background: #fff;
  border: 1px solid #d9d2cb;
  border-radius: 1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
  margin-top: 0.5rem;
  padding: 0.3rem 0;
  z-index: 1001;
}
.language-menu.hidden {
  display: none;
}
.language-option {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color .2s ease;
}
.language-option:hover,
.language-option:focus {
  background: rgba(122, 139, 121, 0.08);
}
.language-option.active {
  background: rgba(104, 127, 111, 0.15);
}
.language-option .language-flag {
  flex-shrink: 0;
}
.language-selector .fa-chevron-down {
  color: #7a7a7a;
}
/* ── RESPONSIVE STYLES ── */
@media (max-width: 426px) {
  #video{
    padding-bottom: 10%;
  }
  #contact{
    padding-top: 10%;
  }
  .language-selector{
    position: absolute;
  }
  .max-w-1xl,.contact-info.max-w-1xl{
    text-align: center;
    Font-size: 1.5rem;
  }
  .flex.items-center.gap-3.mb-5,.flex.items-center.gap-3.mb-4{
    justify-content: center;
    Font-size: 1.5rem;
  }
  .font-body.text-white.text-lg.leading-relaxed.mb-8{
    text-decoration-color: rgb(255 255 255 / 0.6);
    font-size: 1rem;
  }
  /* ── CAMBODIA'S NEXT PROPERTY PLATFORM ── */
  #titlehero{
    font-size: 1.75rem;
  }
  #titlehero2{
    font-size: 1.75rem;
  }
  /* ── BECOME A PARTNER ── */
  .font-display.font-bold.text-5xl.text-dark{
    font-size: 1.75rem;
  }
  .font-display.font-bold.text-5xl.text-dark.mb-6{
    font-size: 1.75rem;
  }
  .font-body.text-gray.text-lg.leading-relaxed.mb-6{
    font-size: 1rem;
  }
}
/* ── VIDEO OVERLAY ── */
.video-overlay.hidden-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ── CONTACT GLASSMORPHISM CARD ── */
.contact-glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ── FLOATING LABELS ── */
.floating-label-group {
  position: relative;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 2px solid #D5D0CC;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  display: block;
}

.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(104, 127, 111, 0.10);
}

.floating-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--gray);
  pointer-events: none;
  background: transparent;
}

textarea + .floating-label {
  top: 18px;
  transform: none;
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
  top: -10px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: white;
  padding: 0 6px;
  border-radius: 4px;
  transform: none;
}

textarea:focus + .floating-label,
textarea:not(:placeholder-shown) + .floating-label {
  top: -10px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: white;
  padding: 0 6px;
  border-radius: 4px;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-input.error {
  border-color: #C8745A;
  box-shadow: 0 0 0 4px rgba(200, 116, 90, 0.08);
}

/* ── ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
:disabled{
  display: none;
}