/*
 Theme Name:   Qwery Child Theme
 Theme URI:    http://qwery.ancorathemes.com
 Description:  Qwery Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com
 Template:     qwery
 Version:      1.3
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  qwery
*/

/* ----------------------------------------------------------------
    Single Portfolio
-----------------------------------------------------------------*/

.tmc-portfolio-hero {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tmc-portfolio-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
}
.tmc-portfolio-hero__inner {
  position: relative;
  padding: 80px 24px;
}
.tmc-portfolio-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

/* Details under hero */
.single-cpt_portfolio .portfolio-meta.under-title {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}
.single-cpt_portfolio .portfolio-meta.under-title .trx_addons_options_item_title {
  opacity: .7;
  font-weight: 500;
}


/* ----------------------------------------------------------------
    Hamburger Menu
-----------------------------------------------------------------*/

.sc_layouts_panel_menu_close {
    display: none!important;
}

.sc_layouts_panel_menu_overlay {
    display: none!important;
}

header.top_panel {
    position: relative;
    z-index: 10009!important; /* Low enough to stay under the Admin Bar (which is 99999) */
}

.sc_layouts_panel_menu_opened #tmc-mobile-menu {
    z-index: 999;
}

.sc_layouts_panel_menu_opened header.top_panel .header-logo {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

/* Container & Button Sizing */
#mainMenu-trigger {
    cursor: pointer;
    display: inline-block;
    padding: 10px;
    position: relative;
    right: 0px;
    top: -11px;
}

.sc_layouts_panel_menu_opened #mainMenu-trigger {
    position: fixed;
    right: 18px;
    top: 13px;
}

@media (min-width: 768px) {
    #mainMenu-trigger {
        right: 10px;
        top: -11px;
    }
    .sc_layouts_panel_menu_opened #mainMenu-trigger {
        right: 28px;
        top: 13px;
    }
}


.lines-button {
    display: inline-block;
    transition: .3s;
    user-select: none;
}

/* The Middle Line */
.lines-button .lines {
    display: inline-block;
    width: 26px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: 0.3s;
    position: relative;
}

.lines-button.white .lines {
    background: #fff; 
}

/* The Top and Bottom Lines */
.lines-button .lines:before, 
.lines-button .lines:after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: 0.3s;
    transform-origin: center;
}

.lines-button.white .lines:before, 
.lines-button.white .lines:after {
    background: #fff;
}

.lines-button .lines:before { top: 8px; }
.lines-button .lines:after { top: -8px; }

/* This triggers when the 'close' class is added via JS */
.lines-button.x.close .lines {
    background: transparent !important; /* Hide middle line */
}

.lines-button.x.close .lines:before {
    transform: rotate3d(0, 0, 1, 45deg);
    top: 0;
}

.lines-button.x.close .lines:after {
    transform: rotate3d(0, 0, 1, -45deg);
    top: 0;
}

body.sc_layouts_panel_menu_opened .lines-button .lines,
body.sc_layouts_panel_menu_opened .lines-button .lines:before,
body.sc_layouts_panel_menu_opened .lines-button .lines:after {
    background-color: #000 !important;
}


/* ----------------------------------------------------------------
    Gravity Form
-----------------------------------------------------------------*/

.gform_wrapper .gform_fields {
  row-gap: 24px;
}

.gform_wrapper {
  --gf-ctrl-shadow: none !important;
  --gf-local-shadow: none !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="search"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper select,
.gform_wrapper .gfield_consent_description {
  --gform-accent: #349777;               
  border: 1px solid #c4c5ca;             
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: 'Poppins';
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="search"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea {
  font-size: 17px;
}

.gform_wrapper select {
  font-size: 16px;
}

.gform_wrapper .gfield_consent_description {
  font-size: 13px;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="search"],
.gform_wrapper input[type="password"] {
  height: auto !important;
  min-height: 45px !important;
}

.gform_wrapper .select_container:after {
	right: 7px;
}

p.gform_required_legend {
	font-size: 14px;
}

/* Base focus style for Gravity Forms fields */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="search"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper textarea.wp-editor-area,
.gform_wrapper select,
.gform_wrapper .select_container select,
.gform_wrapper .gfield_consent_description {
  outline: none;
}

/* Keyboard focus only */
.gform_wrapper input[type="text"]:focus-visible,
.gform_wrapper input[type="number"]:focus-visible,
.gform_wrapper input[type="email"]:focus-visible,
.gform_wrapper input[type="url"]:focus-visible,
.gform_wrapper input[type="tel"]:focus-visible,
.gform_wrapper input[type="search"]:focus-visible,
.gform_wrapper input[type="password"]:focus-visible,
.gform_wrapper textarea:focus-visible,
.gform_wrapper textarea.wp-editor-area:focus-visible,
.gform_wrapper select:focus-visible,
.gform_wrapper .gfield_consent_description:focus-visible {
  border-color: var(--gform-accent);
  box-shadow: 0 0 0 3px rgba(52, 151, 119, 0.15);
}

input[type="radio"] + label:before, input[type="checkbox"] + label:before {
    border-color: #919191!important;
}

.gform_button.button {
  background-color: #294895 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px!important;
  padding: 30px 45px !important;
  font-size: 19px !important;
  cursor: pointer !important;
  display: inline-block;
  text-align: center;
  transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, transform var(--e-transform-transition-duration, .4s);
}

.gform_button.button:hover {
  background-color: #1d2b5b !important;
}

.gform_button.button:focus {
  outline: none !important;
  box-shadow: none !important;
}

.gform_footer, 
.gform_page_footer {
    display: flex !important;
    flex-direction: column !important; /* Stack button and spinner vertically */
    align-items: center !important;    /* Center them horizontally */
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

/* Center the Gravity Forms AJAX spinner */
img.gform_spinner {
    display: block;
    width: 32px; /* Adjust size if necessary */
}

.gform-theme--framework .gform-field-label--type-inline {
    --gf-local-margin-x: unset;
}

.gform-theme--framework .gfield_consent_description:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
    max-height: 200px;
}
.gform_wrapper .gfield_consent_description {
    color: #767676;
}

.gform_wrapper .gfield_consent_description h3 {
    font-size: 16px;
    color: #767676;
}

.gform_wrapper .gfield_consent_description ul {
    list-style: disc;
}

.gform-theme--framework select {
  padding: 8px 44px 8px 14px !important;
  box-sizing: border-box;
}

.gform-theme--framework select:not([multiple]),
.gform-theme--framework select:not([multiple]):hover,
.gform-theme--framework select:not([multiple]):focus,
.gform-theme--framework select:not([multiple])[aria-invalid="true"],
.gform-theme--framework .gfield_error select:not([multiple]) {
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  line-height: normal !important;
  line-height: 1.7em !important;
  min-height: 45px !important;
}

.gform_wrapper .gfield_consent_label,
.gform_wrapper .gfield_consent_label *,
.gform_wrapper .gfield_consent_label input[type="checkbox"] {
  cursor: pointer;
}

.gform_confirmation_message {
    margin-top: 30px;
}

.gform_wrapper .gfield_consent_description,
.gform_wrapper .gfield_consent_description:focus,
.gform_wrapper .gfield_consent_description:focus-within {
    outline: none;
    box-shadow: none;
    border-color: #c4c5ca;
}

/* ----------------------------------------------------------------
    Portfolio Tiles Animation
-----------------------------------------------------------------*/

.sc_blogger .tmc-portfolio-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* visible state */
.sc_blogger .tmc-portfolio-item.tmc-portfolio-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------------
    Force 3 columns between desktop and tablet
-----------------------------------------------------------------*/

@media (min-width: 768px) and (max-width: 1199px) {
    .sc_blogger .trx_addons_column-1_4 {
        width: 33.3333% !important;
    }
}

/* ----------------------------------------------------------------
    Password Protected Page Style
-----------------------------------------------------------------*/

.tmc-password-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    overflow: hidden;
    color: #fff;
    padding: 100px 0 60px;
}

.tmc-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 8, 21, 0.67); /* Dark overlay */
    z-index: 1;
}

.tmc-content-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
    padding: 60px 20px;
}

@media (max-width: 767px) {
    .tmc-content-inner {
        max-width: 380px;
    }
}

@media (min-width: 1200px) {
    .tmc-content-inner {
        max-width: 500px;
    }
}

.tmc-content-inner h1 {
    font-size: 2.2rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.5em;
    color: #fff;
}

.tmc-intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    line-height: 1.6;
}

.tmc-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.tmc-input-group input[type="password"] {
    padding: 15px;
    margin-bottom: 5px;
    width: 100%;
    max-width: 300px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 2px;
    text-align: center;
    font-size: 16px;
}

.tmc-input-group input[type="password"]::placeholder {
    color: #ccc;
}

.tmc-input-group input[type="submit"] {
    background-color: #29a87f;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    padding: 13px 48px 14px;
    font-size: 16px;
    height: 50px !important;
}

.tmc-input-group input[type="submit"]:hover {
    background-color: #20BD8B;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
