.contact-header {
  width: 100% !important;
  height: 0 !important;
  min-height: auto !important;
  padding-top: 80px !important;
  padding-bottom: 26vw !important;
  background: #103025 url('../assets/contact-hero.jpg') bottom center / contain no-repeat !important;
  position: relative;
  overflow: hidden;
}

.contact-header::after {
  content: 'RHOE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 25vw;
  font-weight: 900;
  color: rgba(230, 221, 212, 0.03);
  z-index: 0;
  letter-spacing: 50px;
  pointer-events: none;
}

.contact-header .container {
  position: relative;
  z-index: 1;
}

.contact-header h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 5.5rem;
  margin-bottom: 20px;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* --- Contact Section --- */
.contact-section {
  padding: 60px 0;
  background-color: var(--bg-secondary);
  color: var(--bg-color);
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

/* Form Side - Premium Centered Card Layout */
.contact-form-side {
  background: #ffffff;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.04);
  border: 1px solid rgba(17, 48, 37, 0.05);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-form-side h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.2rem;
  margin-bottom: 35px;
  color: var(--bg-color);
  line-height: 1.2;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-conversation-icon {
  flex-shrink: 0;
  color: var(--bg-color);
  opacity: 0.95;
}

/* Phone Error Message style */
.phone-error {
  color: #c93b3b;
  font-size: 0.75rem;
  display: none;
  margin-top: 5px;
  font-weight: 600;
}
.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 0;
  font-size: 1.1rem;
  color: var(--bg-color);
  opacity: 0.5;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  text-transform: none;
  letter-spacing: 1px;
}

/* Float label up when focused or contains text */
.form-group.focused label,
.form-group.has-value label {
  top: -15px;
  font-size: 0.75rem;
  opacity: 0.8;
  color: var(--bg-color);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid rgba(17, 48, 37, 0.15);
}

.phone-flag {
  font-size: 1.3rem;
  margin-right: 10px;
  user-select: none;
  line-height: 1;
  display: inline-block;
  padding-bottom: 2px;
}

.phone-group label {
  left: 35px;
}

.phone-group.focused label,
.phone-group.has-value label {
  left: 0;
}

.phone-group .form-control {
  border-bottom: none !important;
}

/* Disable default form-group active underline for the phone field */
.phone-group::after {
  display: none !important;
}

/* Unified focus active underline for both flag and number input */
.phone-input-wrapper::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--bg-color);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.phone-group.focused .phone-input-wrapper::after {
  left: 0;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(17, 48, 37, 0.15);
  color: var(--bg-color);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: all 0.4s ease;
}

.form-control::placeholder {
  color: var(--bg-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show placeholder only when input is focused */
.form-control:focus::placeholder {
  opacity: 0.3;
}

.form-control:focus {
  outline: none;
}

/* Signature expansion of the bottom line from center to sides */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--bg-color);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-group.focused::after {
  left: 0;
  width: 100%;
}

textarea.form-control {
  resize: none;
  min-height: 120px;
}

.contact-form-side .btn {
  margin-top: 20px;
  padding: 18px 45px;
  background: var(--bg-color);
  color: var(--bg-secondary) !important;
  border: none;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 8px; /* Rounded corners for premium editorial look */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-form-side .btn:hover {
  background: rgba(17, 48, 37, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(17, 48, 37, 0.15);
}

.form-footer-note {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--bg-color);
  opacity: 0.6;
  line-height: 1.4;
  font-weight: 500;
}

/* Info Side - Premium Matching Card Layout */
.contact-info-side {
  background: #ffffff;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.04);
  border: 1px solid rgba(17, 48, 37, 0.05);
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.contact-info-block h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--bg-color);
  opacity: 0.6;
  margin-bottom: 25px;
  font-weight: 700;
}

.contact-details-grid {
  display: grid;
  gap: 30px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.5;
}

.detail-value {
  font-size: clamp(1rem, 4.5vw, 1.4rem);
  font-weight: 600;
  color: var(--bg-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.detail-value:hover {
  opacity: 0.7;
}

.email-icon {
  flex-shrink: 0;
  color: var(--bg-color);
  transition: transform 0.3s ease;
}

.whatsapp-contact-link {
  transition: color 0.3s ease, opacity 0.3s ease;
}

.whatsapp-contact-link:hover {
  color: #128c7e;
  opacity: 1;
}

.whatsapp-icon {
  flex-shrink: 0;
  color: #25d366;
  transition: color 0.3s ease, transform 0.3s ease;
}

.whatsapp-contact-link:hover .whatsapp-icon {
  color: #128c7e;
  transform: scale(1.1);
}

.detail-value:hover .email-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.contact-social-icons a {
  color: var(--bg-color);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.contact-social-icons a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* --- Founders Note --- */
.founders-note {
  background: #ffffff;
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 40px 100px rgba(17, 48, 37, 0.08);
  position: relative;
}

.founders-note::before {
  content: '“';
  position: absolute;
  top: 30px;
  left: 40px;
  font-size: 8rem;
  font-family: var(--font-heading);
  color: var(--bg-secondary);
  line-height: 1;
  opacity: 0.5;
}

.founders-note blockquote {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--bg-color);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.founders-note .sign {
  margin-top: 30px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--bg-color);
  letter-spacing: 2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}

.founders-note .sign::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--bg-color);
  opacity: 0.3;
}

/* --- Sidebar Cities List --- */
.contact-cities-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-city-item {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
}

.contact-city-item:hover {
  transform: translateX(5px);
}

.city-illustration-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(230, 221, 212, 0.4);
  border: 1px solid rgba(17, 48, 37, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-city-item:hover .city-illustration-wrapper {
  background-color: var(--bg-color);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(17, 48, 37, 0.1);
}

.city-illustration-wrapper svg {
  transition: transform 0.3s ease;
}

.contact-city-item:hover .city-illustration-wrapper svg {
  transform: scale(1.1);
}

.city-text-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.city-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--bg-color);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.city-phone {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bg-color);
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.city-phone:hover {
  opacity: 0.7;
  gap: 12px;
}

.city-phone svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.city-phone:hover svg {
  transform: rotate(15deg);
}

/* --- Founder Redesign (Editorial Luxury Card) --- */
.founder-redesign-section {
  padding: 60px 0 120px 0;
  background: var(--bg-secondary);
  margin: 0;
  position: relative;
  z-index: 1;
}

.founder-card {
  background: var(--bg-color); /* deep brand green #113025 */
  border-radius: 32px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: center;
  box-shadow: 0 30px 70px rgba(17, 48, 37, 0.15);
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: 'RHOE';
  position: absolute;
  right: -50px;
  bottom: -30px;
  font-size: 15rem;
  font-weight: 900;
  font-family: var(--font-body);
  color: rgba(230, 221, 212, 0.02);
  letter-spacing: 20px;
  pointer-events: none;
  z-index: 0;
}

.founder-visual {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  z-index: 1;
}

.founder-image-main {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(230, 221, 212, 0.1);
}

.founder-image-frame {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(230, 221, 212, 0.2);
  border-radius: 24px;
  z-index: 1;
  pointer-events: none;
}

.founder-quote-wrap {
  position: relative;
  z-index: 1;
  padding-left: 20px;
}

.quote-mark-large {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: rgba(230, 221, 212, 0.15);
  position: absolute;
  left: -20px;
  top: -65px;
  line-height: 1;
  pointer-events: none;
}

.founder-quote-text {
  font-family: var(--font-subheading);
  font-size: 2.1rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 300;
  margin: 0;
  text-transform: none;
}

.founder-quote-text em {
  font-family: var(--font-subheading);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
}

.founder-divider {
  width: 80px;
  height: 1px;
  background: rgba(230, 221, 212, 0.2);
  margin: 35px 0 25px 0;
}

.founder-info-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-section-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.founders-grid-luxury {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.founder-member-luxury {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-right: 30px;
}

.founder-member-luxury:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(230, 221, 212, 0.15);
}

.founder-member-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.founder-member-title {
  font-family: var(--font-subheading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-side,
  .contact-info-side {
    padding: 30px 24px;
  }
  .contact-info-side {
    gap: 30px;
  }
  .founder-card {
    padding: 60px;
    gap: 50px;
  }
  .founder-quote-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .contact-header {
    padding-top: 70px !important;
    padding-bottom: 26vw !important;
  }
  .contact-header h1 {
    font-size: 3rem;
    letter-spacing: -1px;
  }
  .contact-form-side h2 {
    font-size: 2.2rem;
  }
  .city-name {
    font-size: 1.0rem;
  }
  .city-phone {
    font-size: 0.88rem;
  }
  .city-illustration-wrapper {
    width: 60px;
    height: 60px;
  }
  .city-illustration-wrapper svg {
    width: 32px;
    height: 28px;
  }
  .founder-redesign-section {
    padding: 60px 0;
  }
  .founder-card {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 40px;
    border-radius: 20px;
  }
  .founder-visual {
    max-width: 100%;
    margin: 0 auto;
  }
  .founder-image-main {
    max-width: 100%;
    height: auto;
  }
  .founder-image-frame {
    display: none;
  }
  .founder-quote-wrap {
    padding-left: 0;
  }
  .quote-mark-large {
    font-size: 6rem;
    left: -10px;
    top: -45px;
  }
  .founder-quote-text {
    font-size: 1.45rem;
    line-height: 1.45;
  }
  .founder-divider {
    margin: 25px 0 15px 0;
  }
  .founders-grid-luxury {
    flex-direction: column;
    gap: 20px;
  }
  .founder-member-luxury {
    padding-right: 0;
  }
  .founder-member-luxury:not(:last-child)::after {
    display: none;
  }
}



/* Success Modal Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Success State Styling --- */
.contact-form-side.success-state {
  background-color: var(--bg-color) !important;
  color: var(--text-primary) !important;
  border-color: rgba(230, 221, 212, 0.1) !important;
  box-shadow: 0 30px 70px rgba(17, 48, 37, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 575px; /* Matches the approximate form height to prevent layout jumps */
  padding: 50px 30px !important;
  transition: background-color 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
              color 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.success-message-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 0.2s;
}

.success-message-content .success-icon-wrapper {
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  color: var(--bg-color);
  transform: scale(0.5);
  opacity: 0;
  animation: scaleIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 0.4s;
}

.success-message-content h2 {
  font-family: var(--font-heading);
  color: var(--text-primary) !important;
  font-size: 2.2rem;
  margin-bottom: 15px !important;
  text-transform: none;
  letter-spacing: 0;
  display: block !important;
  text-align: center !important;
  width: 100%;
}

.success-message-content p {
  font-size: 1.1rem;
  color: var(--text-secondary) !important;
  font-weight: 500;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 30px;
}

.success-message-content .btn {
  margin-top: 10px;
  background: var(--bg-secondary) !important;
  color: var(--bg-color) !important;
  border: 1.5px solid var(--bg-secondary) !important;
  padding: 14px 40px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.success-message-content .btn:hover {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Custom Checkbox Styling --- */
.checkbox-group {
  margin-bottom: 25px !important;
}

.custom-checkbox-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  position: relative !important;
  pointer-events: auto !important;
}

/* Hide default checkbox */
.custom-checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom checkbox box styling */
.custom-checkbox {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 2.2px solid rgba(17, 48, 37, 0.3);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  margin: 0 !important;
}

/* Checkmark SVG or CSS symbol */
.custom-checkbox::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  top: 2px;
  left: 6px;
}

/* On hover, border color gets slightly darker brand green */
.custom-checkbox-container:hover input ~ .custom-checkbox {
  border-color: var(--bg-color);
}

/* When checked, fill background and animate checkmark */
.custom-checkbox-container input:checked ~ .custom-checkbox {
  background-color: var(--bg-color);
  border-color: var(--bg-color);
}

.custom-checkbox-container input:checked ~ .custom-checkbox::after {
  transform: rotate(45deg) scale(1);
}

/* Label text styles */
.checkbox-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--bg-color);
  line-height: 1.45;
  font-weight: 500;
  text-align: left;
}

/* Links color and underline animation */
.checkbox-text a {
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: opacity 0.3s ease;
}

.checkbox-text a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--bg-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.checkbox-text a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.checkbox-text a:hover {
  opacity: 0.8;
}

/* --- Visual Form Validation States --- */
.form-group.invalid .form-control {
  border-bottom-color: #c93b3b !important;
}

.form-group.invalid .phone-input-wrapper {
  border-bottom-color: #c93b3b !important;
}

.form-group.invalid label,
.checkbox-group.invalid .checkbox-text {
  color: #c93b3b !important;
}

.form-group.invalid .error-message,
.form-group.invalid .phone-error,
.checkbox-group.invalid .error-message {
  display: block !important;
  color: #c93b3b !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  margin-top: 6px !important;
  text-align: left !important;
  animation: fadeInUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.checkbox-group.invalid .custom-checkbox {
  border-color: #c93b3b !important;
}




