/**
 * Enertime Custom Contact Page Stylesheet
 * Brand: Enertime Sdn Bhd
 * Design Style: Dark dramatic sport meets lifestyle
 * Fully Responsive, Gutenberg Compatible
 */

.enertime-contact-page {
  background-color: var(--enertime-black, #0D0D0D);
  color: var(--enertime-white, #FFFFFF);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* 1. HERO SECTION */
.enertime-contact-hero {
  position: relative;
  background-color: var(--enertime-black, #0D0D0D);
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.enertime-contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='93' viewBox='0 0 80 93'%3E%3Cpath d='M40 0 L80 23.3 L80 70 L40 93.3 L0 70 L0 23.3 Z' fill='none' stroke='%23C0392B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 93px;
}

.enertime-contact-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--enertime-white, #FFFFFF);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.enertime-contact-subtitle {
  font-size: 1.125rem;
  color: var(--enertime-text-muted, #95A5A6);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 2. GRID LAYOUT & SECTION */
.enertime-contact-body {
  padding: 80px 0;
}

.enertime-contact-grid {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.enertime-contact-info-col {
  flex: 0 0 42%;
}

.enertime-contact-form-col {
  flex: 0 0 58%;
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.enertime-contact-info-col h2,
.enertime-contact-form-col h2 {
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--enertime-white, #FFFFFF);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
}

.enertime-contact-info-col h2::after,
.enertime-contact-form-col h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--enertime-red, #C0392B);
}

/* Info Items Styling */
.info-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2.25rem;
  min-height: 44px;
  display: block !important;
}

.info-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background-color: rgba(192, 57, 43, 0.1);
  border: 1.5px solid rgba(192, 57, 43, 0.3);
  border-radius: 8px;
  transition: all 250ms ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.info-item:hover::before {
  background-color: var(--enertime-red, #C0392B);
  border-color: var(--enertime-red, #C0392B);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* Specific Icons using inline SVGs */
.info-item-address::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.info-item-address:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.info-item-phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.info-item-phone:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.info-item-email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.info-item-email:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.info-item-hours::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}
.info-item-hours:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.info-item .info-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--enertime-text-gold, #E6C280);
  margin: 0 0 0.35rem 0 !important;
}

.info-item .info-content {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.info-item .info-content a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 200ms ease;
}

.info-item .info-content a:hover {
  color: var(--enertime-red, #C0392B);
}

.whatsapp-cta-button {
  margin-top: 1rem;
}

/* 3. WPFORMS DARK THEME STYLING */
.enertime-contact-form-col .wpforms-container {
  margin: 0 !important;
  padding: 0 !important;
}

.enertime-contact-form-col .wpforms-form {
  margin: 0 !important;
}

.enertime-contact-form-col .wpforms-field {
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
}

.enertime-contact-form-col .wpforms-field-label {
  display: block !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 0.5rem !important;
}

.enertime-contact-form-col .wpforms-field-required {
  color: var(--enertime-red, #C0392B) !important;
  margin-left: 3px !important;
}

.enertime-contact-form-col input[type="text"],
.enertime-contact-form-col input[type="email"],
.enertime-contact-form-col textarea {
  width: 100% !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  color: var(--enertime-white, #FFFFFF) !important;
  font-family: inherit !important;
  font-size: 0.9375rem !important;
  transition: all 250ms ease !important;
  outline: none !important;
  box-shadow: none !important;
}

.enertime-contact-form-col input[type="text"]:hover,
.enertime-contact-form-col input[type="email"]:hover,
.enertime-contact-form-col textarea:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background-color: rgba(255, 255, 255, 0.16) !important;
}

.enertime-contact-form-col input[type="text"]:focus,
.enertime-contact-form-col input[type="email"]:focus,
.enertime-contact-form-col textarea:focus {
  border-color: var(--enertime-red, #C0392B) !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.45) !important;
}

.enertime-contact-form-col input::placeholder,
.enertime-contact-form-col textarea::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.enertime-contact-form-col textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Submit Button Styles */
.enertime-contact-form-col .wpforms-submit-container {
  padding: 0 !important;
  margin-top: 2rem !important;
}

.enertime-contact-form-col button.wpforms-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--enertime-red, #C0392B) !important;
  color: var(--enertime-white, #FFFFFF) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 32px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2) !important;
}

.enertime-contact-form-col button.wpforms-submit:hover {
  background-color: var(--enertime-red-dark, #A93226) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4) !important;
}

/* Error/Confirmation Styling */
.wpforms-error {
  color: var(--enertime-red, #C0392B) !important;
  font-size: 0.75rem !important;
  margin-top: 4px !important;
  display: block !important;
}

.wpforms-confirmation-container-outer {
  background: rgba(39, 174, 96, 0.1) !important;
  border: 1px solid rgba(39, 174, 96, 0.3) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  color: #2ECC71 !important;
  text-align: center !important;
}

/* 4. MAP SECTION */
.enertime-contact-map-section {
  padding: 40px 0 80px;
}

.enertime-contact-map-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 10px;
}

.enertime-contact-map-section h2::after {
  content: '';
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 2px;
  background-color: var(--enertime-red, #C0392B);
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  height: 450px;
  background: #111;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.8) invert(0.9) contrast(1.2); /* Premium dark mode map styling */
  opacity: 0.85;
  transition: all 0.5s ease;
}

.map-container:hover iframe {
  filter: none;
  opacity: 1;
}

/* 5. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .enertime-contact-grid {
    gap: 3rem;
  }
  .enertime-contact-info-col {
    flex: 0 0 45%;
  }
  .enertime-contact-form-col {
    flex: 0 0 55%;
    padding: 30px;
  }
  .enertime-contact-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .enertime-contact-hero {
    padding: 120px 0 60px;
  }
  .enertime-contact-grid {
    flex-direction: column;
    gap: 4rem;
  }
  .enertime-contact-info-col,
  .enertime-contact-form-col {
    flex: 0 0 100%;
    width: 100%;
  }
  .enertime-contact-body {
    padding: 50px 0;
  }
  .map-container {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .enertime-contact-title {
    font-size: 2.25rem;
  }
  .enertime-contact-form-col {
    padding: 20px;
  }
}

/* ==========================================================================
   WORDPRESS GENERATEPRESS COMPATIBILITY OVERRIDES FOR CONTACT PAGE
   ========================================================================== */
body.page-id-54 #content,
body.page-id-54 #page,
body.page-id-54 .site-content,
body.page-id-260 #content,
body.page-id-260 #page,
body.page-id-260 .site-content,
body.page-template-page-contact-php #content,
body.page-template-page-contact-php #page,
body.page-template-page-contact-php .site-content,
body.page-template-page-apply-php #content,
body.page-template-page-apply-php #page,
body.page-template-page-apply-php .site-content,
body.page-template-page-contact #content,
body.page-template-page-contact #page,
body.page-template-page-contact .site-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--enertime-black, #0D0D0D) !important;
}

body.page-id-54 #primary,
body.page-id-260 #primary,
body.page-template-page-contact-php #primary,
body.page-template-page-apply-php #primary,
body.page-template-page-contact #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-54 .site-header,
body.page-id-54 .main-navigation,
body.page-id-54 .footer-widgets,
body.page-id-54 #right-sidebar,
body.page-id-54 #left-sidebar,
body.page-id-260 .site-header,
body.page-id-260 .main-navigation,
body.page-id-260 .footer-widgets,
body.page-id-260 #right-sidebar,
body.page-id-260 #left-sidebar,
body.page-template-page-contact-php .site-header,
body.page-template-page-contact-php .main-navigation,
body.page-template-page-contact-php .footer-widgets,
body.page-template-page-contact-php #right-sidebar,
body.page-template-page-contact-php #left-sidebar,
body.page-template-page-apply-php .site-header,
body.page-template-page-apply-php .main-navigation,
body.page-template-page-apply-php .footer-widgets,
body.page-template-page-apply-php #right-sidebar,
body.page-template-page-apply-php #left-sidebar,
body.page-template-page-contact .site-header,
body.page-template-page-contact .main-navigation,
body.page-template-page-contact .footer-widgets,
body.page-template-page-contact #right-sidebar,
body.page-template-page-contact #left-sidebar {
  display: none !important;
}

