/* Styles&Wood Group Plc - Contact Page Stylesheet */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  min-height: 100vh;
}

/* Page Wrapper */
#page_wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header */
#header {
  background: #1a1a2e;
  padding: 1rem 0;
  position: relative;
  z-index: 100;
}

#header .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo {
  margin: 0;
  padding: 0;
}

#logo a {
  display: block;
}

#logo img {
  max-height: 60px;
  width: auto;
}

/* Main Navigation */
#main_menu {
  position: relative;
}

.zn_menu_trigger {
  display: none;
}

.sf-menu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.sf-menu li {
  position: relative;
}

.sf-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.sf-menu a:hover,
.sf-menu li:hover > a {
  background: #e63946;
}

/* Current menu item */
.sf-menu .current-menu-item > a,
.sf-menu .active > a {
  background: #e63946;
}

/* Submenu */
.sf-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a2e;
  min-width: 220px;
  list-style: none;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sf-menu li:hover > .sub-menu {
  display: block;
}

.sf-menu .sub-menu a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sf-menu .sub-menu a:hover {
  background: #e63946;
}

/* Slideshow / Map Section */
#slideshow {
  position: relative;
  background: #f5f5f5;
}

.uh_basic {
  position: relative;
}

.bgback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2a2a4a;
  opacity: 0.1;
}

.static-content.maps-style {
  position: relative;
}

#google_map {
  width: 100%;
  height: 400px;
  background: #ddd;
}

#map_controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#map_controls a {
  display: block;
  width: 36px;
  height: 36px;
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  line-height: 36px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

#map_controls a:hover {
  background: #e63946;
}

.info_pop {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.info_pop .buyit {
  color: #1a1a2e;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.info_pop .text {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  font-weight: 400;
}

.zn_header_bottom_style {
  height: 4px;
  background: #e63946;
}

/* Action Box */
#action_box {
  background: #1a1a2e;
  padding: 1.5rem 0;
  color: #fff;
}

#action_box .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1rem;
}

#action_box h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* Content Section */
#content {
  padding: 3rem 0;
}

#content .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mainbody {
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.span12 {
  width: 100%;
  padding: 0 1rem;
}

.span6 {
  width: 50%;
  padding: 0 1rem;
}

.span3 {
  width: 25%;
  padding: 0 1rem;
}

/* Visual Composer overrides */
.wpb_row {
  margin-bottom: 2rem;
}

.wpb_column {
  margin-bottom: 1.5rem;
}

/* Info Boxes */
.infoBox {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.infoBox p {
  margin-bottom: 0.5rem;
  color: #555;
}

.infoBox p strong {
  color: #1a1a2e;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Tabs */
.wpb_tabs {
  margin-bottom: 2rem;
}

.wpb_tabs_nav {
  list-style: none;
  display: flex;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.wpb_tabs_nav li {
  margin-right: 0.5rem;
}

.wpb_tabs_nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.wpb_tabs_nav a:hover {
  color: #1a1a2e;
}

.wpb_tabs_nav li.ui-tabs-active a {
  color: #e63946;
  border-bottom-color: #e63946;
}

.wpb_tab {
  padding: 1rem 0;
}

/* Gravity Forms */
.gform_wrapper {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

.gform_fields {
  list-style: none;
}

.gfield {
  margin-bottom: 1.25rem;
}

.gfield_label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.gfield_required {
  color: #e63946;
  margin-left: 0.25rem;
}

.ginput_container {
  position: relative;
}

.gfield_select,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gfield_select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.ginput_complex {
  display: flex;
  gap: 1rem;
}

.ginput_complex span {
  flex: 1;
}

.ginput_complex label {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.gfield_description {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-success:hover {
  background: #218838;
}

/* Sharing */
.sharedaddy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.sd-title {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.sd-content ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sd-content li {
  margin: 0;
}

.sd-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.sd-button:hover {
  background: #e9ecef;
}

.share-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-facebook:hover { background: #166fe5; }

.share-twitter { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-twitter:hover { background: #0d8ecf; }

.share-google-plus-1 { background: #db4437; color: #fff; border-color: #db4437; }
.share-google-plus-1:hover { background: #c53929; }

.share-linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-linkedin:hover { background: #084298; }

.sharing-hidden {
  display: none;
}

/* Footer */
#footer {
  background: #1a1a2e;
  color: #fff;
  padding: 3rem 0 1.5rem;
}

#footer .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1rem;
}

#footer .widget {
  margin-bottom: 1.5rem;
}

#footer .widgettitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.2s;
}

#footer a:hover {
  color: #e63946;
}

#footer p {
  color: #adb5bd;
  margin-bottom: 0.5rem;
}

/* Share price widget */
.SPG {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 4px;
}

.spgBox {
  margin-bottom: 0.5rem;
}

.SWprice {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e63946;
}

.SPTxt {
  color: #adb5bd;
  font-size: 0.875rem;
}

/* Bottom section */
.bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons .title {
  color: #adb5bd;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.social-icons a {
  display: block;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  color: #fff;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.social-icons a:hover {
  background: #e63946;
}

.copyright {
  text-align: right;
}

.copyright img {
  max-height: 40px;
  margin-bottom: 0.5rem;
}

.copyright p {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Back to top */
#totop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: #e63946;
  color: #fff;
  text-align: center;
  line-height: 44px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

#totop.visible {
  opacity: 1;
  visibility: visible;
}

#totop:hover {
  background: #c1121f;
}

/* Page loading */
#page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
  .span6,
  .span3 {
    width: 100%;
  }
  
  #header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sf-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .copyright {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .zn_menu_trigger {
    display: block;
  }
  
  .zn_menu_trigger a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e63946;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
  }
  
  #main_menu > .sf-menu {
    display: none;
  }
  
  #main_menu.active > .sf-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 1rem;
  }
  
  .sf-menu .sub-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
  }
  
  #google_map {
    height: 300px;
  }
  
  .ginput_complex {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Utility */
.clear {
  clear: both;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Animation classes */
.wpb_animate_when_almost_visible {
  opacity: 1;
}

/* Fix for inline style in HTML */
header#header {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  background: #1a1a2e !important;
  z-index: 100 !important;
}

/* Form specific fixes */
#gform_wrapper_2,
#gform_wrapper_3 {
  display: block !important;
}

.gform_footer {
  margin-top: 1rem;
}

/* Tab panel visibility */
.wpb_ui-tabs-hide {
  display: none;
}

.ui-tabs-panel {
  display: block;
}

.ui-tabs-panel.wpb_ui-tabs-hide {
  display: none;
}

/* Ensure active tab shows */
#tab-1377282867-1-39,
#tab-1377282867-2-18 {
  display: none;
}

#tab-1377282867-1-39.ui-tabs-active,
#tab-1377282867-2-18.ui-tabs-active,
.wpb_tab:not(.wpb_ui-tabs-hide) {
  display: block;
}