/* ============================================
   Contact Template Styles (Premium Design) - Strengthened
   ============================================ */

body.page-template-contact-v2 .contactp-page {
  --bg-deep: #061826;
  --bg-dark: #0A2236;
  --bg-card: #0F2D46;
  --accent-primary: #15D5FF;
  --accent-secondary: #7DEBFF;
  --text-heading: #E6F7FF;
  --text-body: #B6D9E6;
  --text-muted: #7FB8CC;

  font-family: "Manrope", sans-serif !important;
  color: var(--text-body) !important;
  background-color: var(--bg-deep) !important;
}

body.page-template-contact-v2 .contactp-page h1,
body.page-template-contact-v2 .contactp-page h2,
body.page-template-contact-v2 .contactp-page h3 {
  font-family: "Manrope", sans-serif !important;
  color: var(--text-heading) !important;
}

body.page-template-contact-v2 .contactp-hero__title {
  font-weight: 800 !important;
  font-size: clamp(3rem, 8vw, 72px) !important;
  color: #ffffff !important;
}

.contactp-hero__subtitle {
  margin: 12px 0 0;
  font-size: 24px;
  color: #b6d9e6;
}

/* Action Bar */
.contactp-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #0b6fa4 0%, #064b73 100%);
  border-radius: 12px;
  padding: 18px 30px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 767px) {
  .contactp-action-bar {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

.contactp-action-bar__content {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 767px) {
  .contactp-action-bar__content {
    flex-direction: column;
    gap: 10px;
  }
}

.contactp-action-bar__icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}

.contactp-action-bar__text {
  display: flex;
  flex-direction: column;
}

.contactp-action-bar__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.contactp-action-bar__phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.contactp-action-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #064b73;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.contactp-action-bar__btn:hover {
  background: #e6f7ff;
  transform: translateY(-2px);
}

/* Locations */
.contactp-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 991px) {
  .contactp-locations {
    grid-template-columns: 1fr;
  }
}

.contactp-loc-card {
  background: #0b131c;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.contactp-loc-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}

.contactp-loc-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #203a52;
  color: #8fbcd4;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.contactp-loc-card__badge--green {
  background: rgba(21, 213, 255, 0.15);
  color: #15D5FF;
}

.contactp-loc-card__icon {
  font-size: 1.5rem;
  color: #15D5FF;
}

.contactp-loc-card__title {
  margin: 10px 0 20px;
  font-size: 1.75rem;
  color: #fff;
  font-family: var(--font-heading);
}

.contactp-loc-info {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  color: #b0c4d9;
  min-height: 120px;
}

.contactp-loc-info__label {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 4px;
}

.contactp-loc-info__text {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 8px;
  opacity: 0.8;
}

.contactp-loc-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #15D5FF;
  text-decoration: none;
}

.contactp-loc-map-preview {
  position: relative;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #1a2f40;
}

.contactp-loc-map-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #101c26;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contactp-loc-image {
  position: relative;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.contactp-loc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contactp-loc-weather {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.contactp-loc-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.contactp-loc-contact__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7f94;
  margin-bottom: 4px;
}

.contactp-loc-contact__value {
  display: block;
  font-size: 0.9rem;
  color: #15D5FF;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contactp-loc-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contactp-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #14202b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.contactp-social-btn:hover {
  background: #1e3040;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Form Section */
.contactp-form-section {
  background: #0b121b;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
  .contactp-form-section {
    padding: 30px 20px;
  }
}

.contactp-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contactp-form-title {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #fff;
}

.contactp-form-subtitle {
  color: #8daec4;
  margin-bottom: 30px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contactp-form-new {
  display: grid;
  gap: 16px;
  text-align: left;
}

.contactp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .contactp-form-row {
    grid-template-columns: 1fr;
  }
}

.contactp-field-new {
  display: block;
}

.contactp-field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6d8ba1;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.contactp-input {
  width: 100%;
  background: #15222e;
  border: 1px solid #2a3c4f;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  transition: border 0.2s;
  box-sizing: border-box;
}

.contactp-input:focus {
  outline: none;
  border-color: #15D5FF;
}

.contactp-textarea {
  min-height: 120px;
  resize: vertical;
}

.contactp-submit-btn {
  background: #0ea5e9;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
  width: 100%;
}

.contactp-submit-btn:hover {
  background: #0284c7;
}

/* Social Bottom */
.contactp-social-bottom {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 40px;
}

.contactp-social-bottom-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #5c768d;
  margin-bottom: 16px;
}

.contactp-social-bottom-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.contactp-social-icon {
  width: 40px;
  height: 40px;
  background: #15222e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
  text-decoration: none;
}

.contactp-social-icon:hover {
  background: #15D5FF;
  transform: translateY(-2px);
}

/* Container & Header Fix */
.contactp-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .contactp-container {
    padding: 0 var(--space-xl);
  }
}

/* Hero Background & Overlay */
.contactp-topbg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.contactp-topbg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 24, 38, 0.5);
  /* Slightly darker for better text contrast */
  z-index: 1;
}

/* Adjust for fixed header on transparent pages */
body.page-template-contact-v2 .contactp-hero {
  position: relative;
  z-index: 2;
  padding-top: clamp(120px, 15vh, 180px) !important;
  padding-bottom: var(--space-2xl) !important;
}

section.contactp-hero {
  position: relative;
  min-height: 80vh;
  max-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 110px;
  padding-bottom: 48px;
  background: transparent;
}

.fluentform .ff-el-form-control {
  width: 100%;
  background: #15222e;
  border: 1px solid #2a3c4f !important;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border 0.2s;
  box-sizing: border-box;
  display: block;
  width: 100%;
}