/* --- Brand variables fallbacks --- */
:root {
  --hl-dark-green: #511261;
  --hl-gold: #3E6C3D;
  --hl-medium-green: #75278C;
  --hl-secondary-gold: #366021;
  --hl-black: #000000;
  --hl-white: #FFFFFF;

  --hl-font-heading: 'Cormorant Garamond', serif;
  --hl-font-body: 'DM Sans', sans-serif;

  --hl-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Container & Layout Rules --- */
.hl-cf-container {
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--hl-white);
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: auto;
  margin-right: auto;
}

.hl-cf-wrapper {
  max-width: 960px;
  /* Centered contact form layout */
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 1366px) {
  .hl-cf-container {
    width: 85vw !important;
    max-width: 85vw !important;
    padding-left: 0;
    padding-right: 0;
  }

  .hl-cf-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .hl-cf-container {
    width: 90vw !important;
    max-width: 90vw !important;
  }
}

/* --- Header Section --- */
.hl-cf-header {
  text-align: center;
  margin-bottom: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hl-cf-badge {
  display: inline-block;
  background-color: rgba(27, 77, 62, 0.08);
  color: var(--hl-dark-green);
  font-family: var(--hl-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  border: 1px solid rgba(27, 77, 62, 0.15);
}

.hl-cf-section-title {
  font-family: var(--hl-font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: var(--hl-dark-green);
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.hl-cf-section-desc {
  font-family: var(--hl-font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: #4A5568;
  max-width: 580px;
  margin: 0;
}

/* --- Form Box --- */
.hl-cf-form-box {
  background-color: var(--hl-white);
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .hl-cf-form-box {
    padding: 28px 24px;
  }
}

.hl-cf-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Row & Column Layout */
.hl-cf-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.hl-cf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.hl-cf-col-half {
  width: 50%;
}

@media (max-width: 640px) {
  .hl-cf-row {
    flex-direction: column;
    gap: 24px;
  }

  .hl-cf-col-half {
    width: 100%;
  }
}

/* Label styling */
.hl-cf-label {
  font-family: var(--hl-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hl-dark-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Input / Textarea styling */
.hl-cf-input {
  width: 100%;
  height: 52px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--hl-font-body);
  font-size: 0.95rem;
  color: #1A202C;
  box-sizing: border-box;
  outline: none;
  transition: var(--hl-transition);
}

.hl-cf-textarea {
  height: auto;
  resize: vertical;
  min-height: 140px;
}

.hl-cf-input:focus {
  background-color: var(--hl-white);
  border-color: var(--hl-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* Placeholder styling */
.hl-cf-input::placeholder {
  color: #A0AEC0;
  opacity: 1;
}

/* Form Footer */
.hl-cf-footer {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Premium Submit Button */
.hl-cf-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--hl-dark-green);
  color: var(--hl-white);
  font-family: var(--hl-font-body);
  font-size: 1rem;
  font-weight: 700;
  height: 54px;
  padding: 0 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: var(--hl-transition);
  position: relative;
  overflow: hidden;
}

.hl-cf-submit-btn:hover {
  background-color: var(--hl-gold);
  color: var(--hl-black);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
}

.hl-cf-submit-btn:active {
  transform: translateY(0);
}

/* Button Spinner state */
.hl-cf-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: hl-spin 0.6s linear infinite;
}

.hl-cf-submit-btn.loading .hl-cf-btn-spinner {
  display: inline-block;
}

@keyframes hl-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alert styling */
.hl-cf-alert {
  display: none;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  font-family: var(--hl-font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  box-sizing: border-box;
}

.hl-cf-alert.success {
  display: block;
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.hl-cf-alert.error {
  display: block;
  background-color: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #991B1B;
}

.hl-ci-badge,
.hl-ci-section-title,
.hl-ci-card-title,
.hl-cf-badge,
.hl-cf-section-title,
.hl-cf-label {
  color: #75278C !important;
}

.hl-ci-icon-wrapper,
.hl-cf-submit-btn {
  background-color: #75278C !important;
}