/*
Theme Name:  Preta Carbon Custom Theme. Child for Astra.
Theme URI:  https://rachelmccollin.com
Description:  Theme to support tutsplus tutorial. Child theme for the Astra theme.
Author:  Rachel McCollin & Raam Singh
Textdomain:  mccollin
Author URI:  https://rachelmccollin.com/
Template:  astra
Version:  1.0
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html                 
*/

/* ===== PRETA CARBON COLOR SYSTEM ===== */

/* Root Variables for Easy Reference */
:root {
  --primary-green: #005F05;
  --carbon-base: #1F1C1C;
  --dark-earth: #1E1414;
  --pure-white: #FFFFFF;
  --bone: #F4F1EA;
  --smoke-accent: #8C9FA3;
  --eco-blue: #96EBF5;
  --burnt-clay: #D95D1E;
  --fire-orange: #FCA004;
  --growth-green: #4BC03B;
  --text-secondary: #353030;
  --text-tertiary: #636363;
  --border-light: #D2D2D2;
  --british-race-green: #1B4D26;
  --crimson-red: #E02723;
}

* {
  /* font-size: 20px !important; */
}

/* Fire Gradient for Flame-Cap Sections */
.fire-gradient-bg {
  background: linear-gradient(135deg, #E02723 0%, #E84D19 25%, #F1740F 50%, #FCA004 100%);
}

/* Growth Gradient for Regeneration Sections */
.growth-gradient-bg {
  background: linear-gradient(135deg, #005F05 0%, #2D9824 50%, #69E64F 100%);
}

/* Primary Button Style */
.elementor-button.primary-green,
.ast-button.primary-green,
button.primary-green {
  background-color: var(--primary-green) !important;
  color: var(--pure-white) !important;
  border: none !important;
  transition: all 0.3s ease;
}

.elementor-button.primary-green:hover,
button.primary-green:hover {
  background-color: #0F720F !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 95, 5, 0.3);
}

/* Secondary Button - Eco Blue */
.elementor-button.eco-blue,
button.eco-blue {
  background-color: var(--eco-blue) !important;
  color: var(--dark-earth) !important;
  border: none !important;
  transition: all 0.3s ease;
}

.elementor-button.eco-blue:hover,
button.eco-blue:hover {
  background-color: #0AB8C3 !important;
}

/* Fire CTA Button */
.elementor-button.fire-cta,
button.fire-cta {
  background: linear-gradient(135deg, #E02723, #FCA004) !important;
  color: var(--pure-white) !important;
  border: none !important;
  font-weight: bold;
  transition: all 0.3s ease;
}

.elementor-button.fire-cta:hover,
button.fire-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(252, 160, 4, 0.4);
}

/* Card Styles */
.preta-card {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
}

.preta-card:hover {
  box-shadow: 0 8px 24px rgba(0, 95, 5, 0.15);
  border-color: var(--growth-green);
  transform: translateY(-4px);
}

/* Section Backgrounds */
.dark-earth-section {
  background-color: var(--dark-earth);
  color: var(--pure-white);
}

.light-green-section {
  background-color: #E8F8E6;
  color: var(--primary-green);
}

/* Text Accent Colors */
.text-fire {
  color: var(--fire-orange);
  font-weight: 600;
}

.text-growth {
  color: var(--growth-green);
  font-weight: 600;
}

.text-eco {
  color: var(--eco-blue);
}

/* Heading Accent Underlines */
.heading-fire-accent {
  border-bottom: 4px solid var(--fire-orange);
  padding-bottom: 8px;
  display: inline-block;
}

.heading-green-accent {
  border-bottom: 4px solid var(--primary-green);
  padding-bottom: 8px;
  display: inline-block;
}

/* Link Styles */
a {
  color: var(--smoke-accent);
  transition: color 0.3s ease;
}

a:hover {
  color: #F5F5F5;
  text-decoration: underline;
}

/* Success/Info Boxes */
.success-box {
  background-color: #E8F8E6;
  border-left: 4px solid var(--growth-green);
  padding: 16px;
  border-radius: 4px;
}

.info-box {
  background-color: #F0FCFE;
  border-left: 4px solid var(--eco-blue);
  padding: 16px;
  border-radius: 4px;
}

.warning-box {
  background-color: #FFF4E6;
  border-left: 4px solid var(--fire-orange);
  padding: 16px;
  border-radius: 4px;
}

/* Ajax Spinner CSS */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

/* Optional: Add a spinning animation */
.loading-spinner::after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: 1rem auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Typeform styling */
/* Container styling */
.uacf7-form-2444 {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 600px; /* Set a fixed height for consistency */
    height: 600px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    overflow: visible !important;
}

/* Navigation container styling */
.typeform-navigation {
    position: relative;
    float: bottom;
    bottom: 20px;
    right: 25%;
    justify-content: center;
    transform: none; /* translateX(-50%); */
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Arrow styling */
.typeform-nav-arrow {
    background: rgba(120, 250, 90, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s, transform 0.2s;
}

.typeform-nav-arrow:hover {
    background: rgba(120, 250, 90, 0.6);
}

/* Form group transitions */
.typeform-container p {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.typeform-container p:first-of-type {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.typeform-progress {
    width: 100%;
    height: 6px;
    background: #eee;
    margin-bottom: 30px;
    border-radius: 3px;
    overflow: hidden;
}

.typeform-progress-inner {
    height: 100%;
    background: #ffaf00;
    transition: width 0.4s ease;
}

.typeform-step {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-bottom: 60px; /* Ensure space for navigation buttons */
}

.typeform-step:first-of-type {
    display: block !important;
}

.typeform-continue {
    display: block;
    margin-top: 20px;
    padding: 12px 24px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.typeform-continue:hover {
    
}

.satisfaction-survey .wpcf7-form input[type="text"],
.satisfaction-survey .wpcf7-form input[type="email"],
.satisfaction-survey .wpcf7-form select,
.satisfaction-survey .wpcf7-form textarea {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border: 2px solid #eee;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Include padding and border in total width/height */
}

.satisfaction-survey .wpcf7-form input:focus,
.satisfaction-survey .wpcf7-form select:focus,
.satisfaction-survey .wpcf7-form textarea:focus {
    border-color: #ffaf00;
    outline: none;
}

.invalid {
    border-color: #dc1428 !important;
}

.uacf7-form-2444 {
    display: block !important;
}