/* =========================================================
   app.css
   App-specific styles for CF Gears
   Loaded AFTER Bootstrap
   ========================================================= */
/* BRAND THEME: Fresh Green & Warm Charcoal
   Colors: #4b4746 (Charcoal), #59a52c (Green), #6fca3a (Light Green)
*/

:root {
  --brand-charcoal: #4b4746;
  --brand-green: #59a52c;
  --brand-green-light: #6fca3a;
  
  /* Bootstrap Overrides */
  --bs-primary: #59a52c;
  --bs-primary-rgb: 89, 165, 44;
  --bs-secondary: #4b4746;
  --bs-secondary-rgb: 75, 71, 70;
  
  --brand-gradient: linear-gradient(135deg, #59a52c 0%, #6fca3a 100%);
}

/* --- Global Utilities --- */
.brand-charcoal-text { color: var(--brand-charcoal) !important; }
.bg-brand-charcoal { background-color: var(--brand-charcoal) !important; }
.italic { font-style: italic; }
.tracking-wider { letter-spacing: 2px; }
.opacity-05 { opacity: 0.05; }

.brand-gradient-text {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* --- Bootstrap State Overrides --- */
.text-primary { color: var(--brand-green) !important; }
.bg-primary { background-color: var(--brand-green) !important; }
.text-success { color: var(--brand-green) !important; }
.bg-success-subtle { background-color: rgba(var(--bs-primary-rgb), 0.1) !important; }
.bg-danger-subtle { background-color: rgba(220, 53, 69, 0.1) !important; }
.border-success, .border-top { border-color: var(--brand-green) !important; }
.text-success-subtle { color: rgba(var(--bs-primary-rgb), 0.2); }


/* --- Component: Navigation --- */

.navbar {
    border-bottom: 1px solid rgba(111, 202, 58, 0.3) !important;
    backdrop-filter: blur(10px); /* Optional: adds a premium glass effect */
}
/* Increase the brand text size */
.navbar-brand .brand-text {
    font-size: 2.0rem; /* Adjust this (e.g., 1.6rem) until it hits the sweet spot */
    line-height: 1;
    letter-spacing: -0.5px;
    color: white !important;
}

.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: var(--brand-green-light) !important;
}

/* Specific styling for CF Gears name */
/* We'll use a span-less trick or just style the first two letters if you're open to a tiny HTML change */
.brand-text {
    display: inline-block;
    margin-bottom: 3px;
}

/* If you can wrap CF in a span, use this (Most reliable): */
.brand-text span {
    color: var(--brand-green);
}

/* The Success Alert (Your Primary Brand Green) */
.alert-success {
    background-color: rgba(var(--bs-primary-rgb), 0.1); /* 10% opacity of your green */
    border: 1px solid var(--brand-green);
    color: var(--brand-charcoal);
    border-radius: 12px;
}

/* The Dark Alert (Your Brand Charcoal) */
.alert-dark {
    background-color: var(--brand-charcoal);
    border: none;
    color: white;
    border-radius: 12px;
}

/* The Danger Alert (A red that complements your green) */
.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    border-radius: 12px;
}

/* Style for icons inside alerts */
.alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.02);
}

.table thead th {
    border-top: none;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- Component: Buttons --- */

/* Unified Gradient Button*/
.btn-brand-gradient {
  background: var(--brand-gradient);
  color: white !important;
  border: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-brand-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.3);
  opacity: 0.9;
} 

.btn-primary {
    background: var(--brand-gradient) !important;
    border: none !important;
    /* Set a custom width 
    width: 180px; */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6fca3a 0%, #59a52c 100%) !important; /* Flips on hover */
}

/* --- Brand Form Styles --- */

.brand-form .form-control {
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease-in-out;
}

/* Custom Focus State - Uses your Primary Green */
.brand-form .form-control:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
  outline: 0;
}

/* Customizing the Label Color */
.brand-form .form-label {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* Add a tiny bit of extra padding to the top of your headers */
.bg-brand-charcoal.py-5 {
    padding-top: 6rem !important; 
}

/* --- Component: Hero & Features --- */

/* Subtle background glow for images */
.brand-shape-blob {
  width: 80%;
  height: 80%;
  background-color: var(--brand-green-light);
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  border-radius: 50%;
}

/* Icon Containers for Features */
.feature-icon-wrap {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--brand-gradient);
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 8px 15px rgba(var(--bs-primary-rgb), 0.2);
  margin-bottom: 1.5rem;
}

/* Feature Card Hover Animation */
.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card.shadow-lg {
    border: 2px solid var(--brand-green-light) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}
/* --- Footer Specific Styles --- */

.footer-link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 2;
}

.footer-link:hover {
  color: var(--brand-green-light) !important;
}

.footer-social-icon {
  color: white;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.footer-social-icon:hover {
  color: var(--brand-green-light);
}

/* Ensure the newsletter input looks modern */
footer .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
}

footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

footer .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  border: 1px solid var(--brand-green);
}

/* 
Custom CSS to set a max width and center the form 
*/
.form-container {
    max-width: 600px; /* Adjust this value as needed */
    margin: 50px auto; /* Centers the container horizontally */
}

form {
    /* p-4 (padding: 1.5rem !important) */
    padding: 1.5rem;

    /* border */
    border: 1px solid #dee2e6;

    /* rounded (border-radius: 0.375rem !important) */
    border-radius: 0.375rem;

    /* shadow-sm (box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important) */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);

    /* bg-light (background-color: #f8f9fa !important) */
    background-color: #f8f9fa;
}

/* Styling the Select Dropdown to match form-control */
.form-select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
}

/* Ensure the eye icon feels like part of the input */
.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
    border-color: var(--brand-green) !important;
}

#password-strength-bar {
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Specific Strength Colors */
.bg-weak { background-color: #dc3545 !important; }   /* Red */
.bg-medium { background-color: #ffc107 !important; } /* Yellow */
.bg-strong { background-color: var(--brand-green) !important; } /* Our Brand Green */
.bg-success{ background-color: var(--brand-green) !important; } /* Our Brand Green */

/* SMS Bubble Style */
.sms-preview-bubble {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    /* Keeps the "sharp" corner for the chat effect */
    border-bottom-left-radius: 4px !important; 
    font-size: 0.95rem;
    color: var(--brand-charcoal);
    position: relative;
}

.sms-preview-bubble strong {
    color: var(--brand-green);
}

/* Enhanced Tail to match the border */
.bubble-tail {
    position: absolute;
    bottom: -1px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-left: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    /* This creates the "hook" look */
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* --- FAQ Custom Styles --- */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--brand-green);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234b4746'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    border: 1px solid #eee !important;
}

/* Targeting the links in the sidebar specifically */
.col-lg-3 .nav-link.footer-link {
    color: #343a40 !important; /* Forces a dark charcoal color */
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 10px !important;
}

/* Hover Effect */
.col-lg-3 .nav-link.footer-link:hover {
    color: #59a52c !important; /* Matches your brand green */
    padding-left: 15px !important;
    border-left: 3px solid #59a52c;
    background-color: rgba(var(--bs-primary-rgb), 0.05); /* Very subtle green tint */
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.legal-content h4 {
    margin-top: 2.5rem;
}

.breadcrumb-item a {
    color: var(--brand-green);
    font-weight: 500;
}

/* Plan Selection Cards */
.plan-radio-input {
    display: none; /* Hide the actual radio button circle */
}

.plan-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef !important;
}

.plan-radio-input:checked + .plan-card {
    border-color: var(--brand-green) !important;
    background-color: white;
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.1);
    transform: translateY(-3px);
}

.plan-radio-input:checked + .plan-card .brand-charcoal-text {
    color: var(--brand-green) !important;
}

/* Badge Styling */
.bg-brand-gradient {
    background: var(--brand-gradient) !important;
    font-size: 0.7rem;
    padding: 0.5em 1em;
}

/* Success Pulse Animation
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(var(--bs-primary-rgb), 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0); }
} */

/* Settings Tabs Styling */
#settings-tabs .nav-link {
    color: var(--brand-charcoal);
    border-radius: 12px;
    transition: all 0.2s;
}

#settings-tabs .nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

#settings-tabs .nav-link.active {
    background: var(--brand-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2);
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.1);
}

.feature-list i {
    font-size: 1.2rem;
    vertical-align: middle;
}

.details-visual-card {
    border-left: 5px solid var(--brand-green) !important;
}

.border-dashed {
    border: 3px dashed #dee2e6 !important;
}

/* Step Card Styling */
.step-card {
    background: #ffffff;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--brand-green);
}

/* Icon & Number Containers */
.step-icon-wrap {
    width: 90px;
    height: 90px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 2.5rem;
    color: var(--brand-charcoal);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon-wrap {
    background: var(--brand-gradient);
    color: white;
}

/* The Floating Number Step */
.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-charcoal);
    color: var(--brand-green);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.step-card:hover .step-number {
    background: white;
    color: var(--brand-charcoal);
}

/* Ensure the alert looks integrated with the brand colors */
.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}