/*
Theme Name: DeSeguridad Academia
Theme URI: https://academia.deseguridad.net
Author: Tecnoinnsoft
Description: Tema optimizado exclusivamente para el subdominio Academia de DeSeguridad.net. Aislamiento total de estilos, header/footer chrome, y navegación sin interferencia con el sitio principal.
Version: 1.0.1
Text Domain: desegurid-academia
*/

/* Reset & Base Typography */
body.tis-body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0c1128;
    color: #ffffff;
    overflow-x: hidden;
}

/* ==========================================================================
   Header Polish & Alignment
   ========================================================================== */
.site-header-chrome {
    background: #090e23 !important;
    padding: 0.75rem 2rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-header-chrome .wp-block-group,
.site-header-chrome .wp-block-navigation,
.site-header-chrome .wp-block-navigation__container,
.site-header-chrome .wp-block-navigation__responsive-container,
.site-header-chrome .wp-block-navigation__responsive-container-content,
.site-header-chrome .has-primary-background-color,
.site-header-chrome .has-background {
    background: transparent !important;
    background-color: transparent !important;
}

.site-header-chrome .wp-block-columns {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.site-header-chrome figure.wp-block-image {
    margin: 0 !important;
}

.site-header-chrome figure.wp-block-image img {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
}

.site-header-chrome nav.wp-block-navigation {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header-chrome ul.wp-block-navigation__container {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header-chrome .wp-block-navigation-item__content {
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px !important;
    transition: all 0.25s ease !important;
}

.site-header-chrome .wp-block-navigation-item__content:hover {
    color: #AFFFF9 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   Footer Polish & LearnDash Card Styles Fix (No white-on-white text)
   ========================================================================== */
.site-footer-chrome {
    background: #060919 !important;
    color: #ffffff !important;
    padding: 3.5rem 2rem 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-footer-chrome h4.wp-block-heading {
    color: #AFFFF9 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    margin-bottom: 1.25rem !important;
}

/* LearnDash Footer Cards - Sleek dark glassmorphism (Fixes white-on-white text) */
.site-footer-chrome .learndash-wrapper .ld-item-list,
.site-footer-chrome .learndash-wrapper .ld-item-list-item {
    margin-bottom: 0.5rem !important;
    background: transparent !important;
    border: none !important;
}

.site-footer-chrome .learndash-wrapper .ld-item-list-item-preview {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.25s ease !important;
}

.site-footer-chrome .learndash-wrapper .ld-item-list-item-preview:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(175, 255, 249, 0.4) !important;
    transform: translateX(3px) !important;
}

.site-footer-chrome .learndash-wrapper a.ld-item-name,
.site-footer-chrome .learndash-wrapper .ld-item-name {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    text-decoration: none !important;
    display: block !important;
}

.site-footer-chrome .learndash-wrapper a.ld-item-name:hover {
    color: #AFFFF9 !important;
}

/* Standard Footer Links */
.site-footer-chrome ul.wp-block-list {
    padding-left: 0 !important;
    list-style: none !important;
    margin: 0 0 1.5rem 0 !important;
}

.site-footer-chrome ul.wp-block-list li {
    background: transparent !important;
    margin-bottom: 0.6rem !important;
}

.site-footer-chrome ul.wp-block-list li a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.2s ease !important;
}

.site-footer-chrome ul.wp-block-list li a:hover {
    color: #AFFFF9 !important;
    text-decoration: underline !important;
}

.site-footer-chrome p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

.site-footer-chrome p a {
    color: #AFFFF9 !important;
    text-decoration: underline !important;
}

/* Suppression rules for landing pages */
body.tis-hide-header .site-header-chrome,
body.tis-hide-header .ct-header-top-bar,
body.tis-hide-header header,
body.tis-hide-header #header,
body.tis-hide-header .site-header {
    display: none !important;
}

body.tis-hide-footer .site-footer-chrome,
body.tis-hide-footer footer,
body.tis-hide-footer #footer,
body.tis-hide-footer .site-footer {
    display: none !important;
}

/* ==========================================================================
   Feature CTA Button Style (Highlight Ingresar like DeSeguridad)
   ========================================================================== */
.wp-block-navigation-item.feature > .wp-block-navigation-item__content,
.site-header-chrome .menu-item.feature > a,
.site-header-chrome a.feature,
.feature > .wp-block-navigation-item__content,
li.feature > a {
    background: linear-gradient(135deg, #B35524 0%, #7D3A19 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: none !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s !important;
    text-align: center !important;
    display: inline-block !important;
    box-shadow: 0 4px 12px rgba(179, 85, 36, 0.25) !important;
}

.wp-block-navigation-item.feature > .wp-block-navigation-item__content:hover,
.site-header-chrome .menu-item.feature > a:hover,
.site-header-chrome a.feature:hover,
.feature > .wp-block-navigation-item__content:hover,
li.feature > a:hover {
    background: #7D3A19 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(125, 58, 25, 0.45) !important;
}

/* ==========================================================================
   Menu Visibility by Custom Classes (Front vs Admin/Logged-in)
   ========================================================================== */

/* 1. only-logged-in / hide-logged-out: Oculto en front cuando NO está logueado */
body:not(.logged-in) .only-logged-in,
body:not(.logged-in) .logged-in-only,
body:not(.logged-in) .show-logged-in,
body:not(.logged-in) .hide-logged-out,
body:not(.logged-in) .hide-guest,
body:not(.logged-in) li.only-logged-in,
body:not(.logged-in) .wp-block-navigation-item.only-logged-in,
body:not(.logged-in) .wp-block-navigation-item.show-logged-in,
body:not(.logged-in) .wp-block-navigation-item.hide-logged-out {
    display: none !important;
}

/* 2. only-logged-out / hide-logged-in: Oculto cuando el usuario SÍ está logueado */
body.logged-in .only-logged-out,
body.logged-in .logged-out-only,
body.logged-in .show-logged-out,
body.logged-in .hide-logged-in,
body.logged-in .show-guest,
body.logged-in li.only-logged-out,
body.logged-in .wp-block-navigation-item.only-logged-out,
body.logged-in .wp-block-navigation-item.hide-logged-in,
body.logged-in .wp-block-navigation-item.show-guest {
    display: none !important;
}

/* 3. only-admin: Visible solo para administradores */
body:not(.admin-user) .only-admin,
body:not(.admin-user) .hide-subscriber {
    display: none !important;
}

/* 4. Disable WordPress Admin Bar for Subscribers / Non-Admins */
body:not(.admin-user) #wpadminbar,
.subscriber-user #wpadminbar {
    display: none !important;
}

html:not(.admin-user),
body:not(.admin-user),
html.subscriber-user,
body.subscriber-user {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   LearnDash Profile & Course Progress Bar - High Contrast Fixes
   ========================================================================== */

/* Base container for LearnDash cards: prevent inheriting #ffffff on light backgrounds */
.learndash-wrapper .ld-item-list,
.learndash-wrapper .ld-item-list-item,
.learndash-wrapper .ld-item-list-item-expanded,
.learndash-wrapper .ld-course-list,
.learndash-wrapper .ld-profile-summary,
.ld-item-list-item-expanded,
.ld-progress {
    color: #1e293b;
}

/* Progress Heading & Labels */
.learndash-wrapper .ld-progress .ld-progress-heading,
.ld-progress .ld-progress-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
}

.learndash-wrapper .ld-progress .ld-progress-label,
.ld-progress .ld-progress-label,
.ld-item-list-item-expanded .ld-progress-label {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Progress Stats: Steps (e.g. 0/10 Steps) and Percentage */
.learndash-wrapper .ld-progress .ld-progress-stats,
.ld-progress .ld-progress-stats,
.ld-item-list-item-expanded .ld-progress-stats {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.learndash-wrapper .ld-progress .ld-progress-steps,
.ld-progress .ld-progress-steps,
.ld-item-list-item-expanded .ld-progress-steps {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.learndash-wrapper .ld-progress .ld-progress-percentage,
.ld-progress .ld-progress-percentage,
.ld-item-list-item-expanded .ld-progress-percentage {
    color: #007a70 !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}

/* Progress Bar Track & Fill */
.learndash-wrapper .ld-progress .ld-progress-bar,
.ld-progress .ld-progress-bar,
.ld-item-list-item-expanded .ld-progress-bar {
    background-color: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9999px !important;
    height: 10px !important;
    overflow: hidden !important;
    margin-top: 4px !important;
}

.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage,
.ld-progress .ld-progress-bar .ld-progress-bar-percentage,
.ld-item-list-item-expanded .ld-progress-bar-percentage {
    background: linear-gradient(90deg, #008080 0%, #00a699 100%) !important;
    border-radius: 9999px !important;
    height: 100% !important;
}

/* Expanded Card Background and General Content Contrast */
.learndash-wrapper .ld-item-list-item-expanded,
.ld-item-list-item-expanded {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   LearnDash Lessons, Topics & Quizzes Contrast Polish
   ========================================================================== */

/* 1. LearnDash Course & Topic Card Titles (White Background Cards) - Teal 500 to Teal 800 */
.learndash-wrapper .ld-item-list .ld-item-list-item a.ld-item-name,
.learndash-wrapper .ld-item-list-item-preview a.ld-item-name,
.learndash-wrapper .ld-item-name,
.learndash-wrapper a.ld-item-name,
.learndash-wrapper .ld-course-title a,
.learndash-wrapper .ld-item-list-item-preview .ld-item-name,
.ld-item-list-item a.ld-item-name,
.ld-item-name {
    color: #14b8a6 !important; /* Teal 500 */
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
}

.learndash-wrapper .ld-item-list .ld-item-list-item a.ld-item-name:hover,
.learndash-wrapper .ld-item-list-item-preview a.ld-item-name:hover,
.learndash-wrapper .ld-item-name:hover,
.learndash-wrapper a.ld-item-name:hover,
.learndash-wrapper .ld-course-title a:hover,
.learndash-wrapper .ld-item-list-item-preview .ld-item-name:hover,
.ld-item-list-item a.ld-item-name:hover,
.ld-item-name:hover {
    color: #115e59 !important; /* Teal 800 */
    text-decoration-color: #115e59 !important;
}

/* Expand / Collapse Button text and icon */
.learndash-wrapper .ld-expand-button,
.ld-expand-button {
    color: #0f766e !important;
    font-weight: 600 !important;
}

.learndash-wrapper .ld-expand-button:hover,
.ld-expand-button:hover {
    color: #115e59 !important;
}

/* 2. Lesson Content Body Links (e.g. CARTILLA 1 A on dark navy background) */
.learndash-wrapper .ld-tab-content p a,
.learndash-wrapper .ld-lesson-content p a,
.learndash-wrapper .ld-topic-content p a,
.tis-container .entry-content > p a {
    color: #14b8a6 !important; /* Teal 500 */
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    transition: color 0.2s ease !important;
}

.learndash-wrapper .ld-tab-content p a:hover,
.learndash-wrapper .ld-lesson-content p a:hover,
.learndash-wrapper .ld-topic-content p a:hover,
.tis-container .entry-content > p a:hover {
    color: #AFFFF9 !important;
    text-decoration: none !important;
}

/* 2. Top Tabs (Tópico / Materiales) */
.learndash-wrapper .ld-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    gap: 0.5rem !important;
}

.learndash-wrapper .ld-tabs .ld-tab {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: none !important;
    background: transparent !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.learndash-wrapper .ld-tabs .ld-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.learndash-wrapper .ld-tabs .ld-tab.ld-is-active,
.learndash-wrapper .ld-tabs .ld-tab.ld-active {
    color: #AFFFF9 !important;
    background: rgba(175, 255, 249, 0.08) !important;
    border-bottom: 3px solid #00a699 !important;
}

/* 3. Table List Header (Lección Content / Evaluaciones) */
.learndash-wrapper .ld-table-list-header,
.learndash-wrapper .ld-section-heading {
    background: #007a70 !important;
    color: #ffffff !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 0.9rem 1.25rem !important;
    border: none !important;
}

.learndash-wrapper .ld-table-list-header h2,
.learndash-wrapper .ld-table-list-header h3,
.learndash-wrapper .ld-section-heading h2,
.learndash-wrapper .ld-section-heading h3,
.learndash-wrapper .ld-table-list-header .ld-text,
.learndash-wrapper .ld-section-heading .ld-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}

.learndash-wrapper .ld-table-list-header .ld-item-icon svg,
.learndash-wrapper .ld-section-heading .ld-item-icon svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.learndash-wrapper .ld-table-list-header .ld-progress-stats,
.learndash-wrapper .ld-section-heading .ld-progress-stats {
    color: #AFFFF9 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

/* 4. Table List Items (Topics, Quizzes, Lessons inside Dark Theme) */
.learndash-wrapper .ld-table-list,
.learndash-wrapper .ld-table-list-items {
    background: #090e23 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0 0 12px 12px !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
}

.learndash-wrapper .ld-table-list .ld-table-list-item,
.learndash-wrapper .ld-table-list-item-preview,
.learndash-wrapper .ld-table-list-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 1rem 1.25rem !important;
    transition: background 0.2s ease !important;
}

.learndash-wrapper .ld-table-list .ld-table-list-item:last-child,
.learndash-wrapper .ld-table-list-item:last-child {
    border-bottom: none !important;
}

.learndash-wrapper .ld-table-list .ld-table-list-item:hover,
.learndash-wrapper .ld-table-list-item-preview:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Title text inside table items (Fixes dark-on-dark text) */
.learndash-wrapper .ld-table-list-item-preview a,
.learndash-wrapper .ld-table-list-item-preview span,
.learndash-wrapper .ld-table-list-item-preview .ld-topic-title,
.learndash-wrapper .ld-table-list-item-preview .ld-item-title,
.learndash-wrapper .ld-table-list-item-preview .ld-text,
.learndash-wrapper .ld-table-list-item a,
.learndash-wrapper .ld-table-list-item span:not(.ld-status) {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}

.learndash-wrapper .ld-table-list-item-preview a:hover,
.learndash-wrapper .ld-table-list-item a:hover {
    color: #AFFFF9 !important;
}

/* Status Icons inside table rows (document, quiz, check) */
.learndash-wrapper .ld-table-list-item-preview .ld-icon,
.learndash-wrapper .ld-table-list-item-preview .ld-status-icon,
.learndash-wrapper .ld-table-list-item-preview svg,
.learndash-wrapper .ld-table-list-item .ld-icon,
.learndash-wrapper .ld-table-list-item svg {
    color: #AFFFF9 !important;
    fill: #AFFFF9 !important;
}

/* Circular status bullets (incomplete) */
.learndash-wrapper .ld-status-icon.ld-status-incomplete,
.learndash-wrapper .ld-status-incomplete {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background: transparent !important;
}

/* 5. Evaluaciones Card in Lesson View */
.learndash-wrapper .ld-quiz-list,
.learndash-wrapper .ld-table-list.ld-quiz-list {
    background: #090e23 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
}

.learndash-wrapper .ld-quiz-list .ld-table-list-item,
.learndash-wrapper .ld-quiz-list .ld-table-list-item-preview {
    background: transparent !important;
    color: #ffffff !important;
}

.learndash-wrapper .ld-quiz-list a,
.learndash-wrapper .ld-quiz-list span {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.learndash-wrapper .ld-quiz-list a:hover {
    color: #AFFFF9 !important;
}

/* 6. Navigation Actions at Bottom (Buttons & Back Link) */
.learndash-wrapper .ld-content-actions {
    margin-top: 2.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.learndash-wrapper .ld-content-actions .ld-button,
.learndash-wrapper .ld-button,
.learndash-wrapper a.ld-button,
.learndash-wrapper .ld-button-primary,
.learndash-wrapper .ld-button-secondary {
    background: linear-gradient(135deg, #008080 0%, #00a699 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(175, 255, 249, 0.3) !important;
    border-radius: 9999px !important;
    padding: 12px 26px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 14px rgba(0, 128, 128, 0.35) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

.learndash-wrapper .ld-content-actions .ld-button:hover,
.learndash-wrapper .ld-button:hover,
.learndash-wrapper a.ld-button:hover,
.learndash-wrapper .ld-button-primary:hover,
.learndash-wrapper .ld-button-secondary:hover {
    background: #00a699 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 166, 153, 0.5) !important;
}

.learndash-wrapper .ld-content-actions .ld-button svg,
.learndash-wrapper .ld-button svg {
    fill: #ffffff !important;
}

/* Central Back Link (Volver a la lección / Volver al curso) */
.learndash-wrapper .ld-content-actions .ld-back-link,
.learndash-wrapper .ld-content-actions a:not(.ld-button) {
    color: #AFFFF9 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    transition: color 0.2s ease !important;
}

.learndash-wrapper .ld-content-actions .ld-back-link:hover,
.learndash-wrapper .ld-content-actions a:not(.ld-button):hover {
    color: #ffffff !important;
}

/* ==========================================================================
   Gravity Forms Dark Theme & High Contrast Polish
   ========================================================================== */
.gform_wrapper,
.gform_wrapper form,
.gform-body,
.gform_body,
.gform_fields {
    color: #ffffff !important;
}

/* Field labels and legend */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label,
.gform_wrapper legend.gfield_label,
.gform_wrapper legend.gform-field-label,
.gform-body .gfield_label,
.gform_body .gfield_label,
.gform-body .gform-field-label,
.gform_body .gform-field-label,
.gform-body legend.gfield_label,
.gform_body legend.gfield_label {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
    letter-spacing: 0.02em !important;
}

/* Required indicator (Vibrant high-contrast coral/red) */
.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required_text,
.gform-body .gfield_required,
.gform_body .gfield_required,
.gform-body .gfield_required_text,
.gform_body .gfield_required_text {
    color: #ff6b6b !important;
    font-weight: 700 !important;
    margin-left: 6px !important;
}

/* Sub-labels (Nombres, Apellidos, Ingresa tu email, Confirma tu email) */
.gform_wrapper .gform-field-label--type-sub,
.gform_wrapper .gfield_description,
.gform_wrapper .ginput_container label,
.gform-body .gform-field-label--type-sub,
.gform_body .gform-field-label--type-sub,
.gform-body .ginput_container label,
.gform_body .ginput_container label {
    color: #cbd5e1 !important; /* Slate 300 - clear contrast against dark navy */
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

/* Descriptions & character counter */
.gform_wrapper .gfield_description,
.gform_wrapper .charleft,
.gform_wrapper .ginput_counter,
.gform-body .gfield_description,
.gform_body .gfield_description,
.gform-body .charleft,
.gform_body .charleft,
.gform-body .ginput_counter,
.gform_body .ginput_counter {
    color: #94a3b8 !important; /* Slate 400 */
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
}

/* Inputs & textareas */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper select,
.gform-body input[type="text"],
.gform_body input[type="text"],
.gform-body input[type="email"],
.gform_body input[type="email"],
.gform-body textarea,
.gform_body textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus,
.gform-body input:focus,
.gform_body input:focus,
.gform-body textarea:focus,
.gform_body textarea:focus {
    border-color: #14b8a6 !important; /* Teal 500 */
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25) !important;
    outline: none !important;
}

/* Fieldset and field spacing */
.gform_wrapper .gfield,
.gform-body .gfield,
.gform_body .gfield {
    margin-bottom: 1.5rem !important;
    border: none !important;
    padding: 0 !important;
}

/* Gravity Forms Submit Button - Brand gradient matching theme */
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"],
.gform_footer .gform_button,
.gform_page_footer .gform_button,
.gform_body + .gform_footer input[type="submit"] {
    background: linear-gradient(135deg, #B35524 0%, #7D3A19 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 36px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(179, 85, 36, 0.35) !important;
    display: inline-block !important;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover,
.gform_wrapper button[type="submit"]:hover,
.gform_footer .gform_button:hover,
.gform_page_footer .gform_button:hover {
    background: #7D3A19 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(125, 58, 25, 0.5) !important;
}



