/**
 * PMPro Complete Style Fixes
 * Force FORFX Webflow Design System
 * Version: 1.0.0
 */

/* ============================================
   GLOBAL PMPRO RESETS
   ============================================ */

/* Remove all default PMPro styling */
.pmpro_checkout,
.pmpro_form,
#pmpro_form,
.pmpro_checkout-fields,
.pmpro_checkout-field {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   FORM INPUTS - FORCE FORFX DESIGN
   ============================================ */

/* All Input Fields */
#pmpro_form input[type="text"],
#pmpro_form input[type="email"],
#pmpro_form input[type="password"],
#pmpro_form input[type="tel"],
#pmpro_form input[type="number"],
#pmpro_form select,
#pmpro_form textarea,
#loginform input[type="text"],
#loginform input[type="password"],
.pmpro_form input[type="text"],
.pmpro_form input[type="email"],
.pmpro_form input[type="password"] {
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
    background: rgba(236, 236, 236, 0.04) !important;
    border: 1px solid rgba(236, 236, 236, 0.2) !important;
    border-radius: 0.5rem !important;
    color: #ececec !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* Input Focus States */
#pmpro_form input[type="text"]:focus,
#pmpro_form input[type="email"]:focus,
#pmpro_form input[type="password"]:focus,
#pmpro_form input[type="tel"]:focus,
#pmpro_form input[type="number"]:focus,
#pmpro_form select:focus,
#pmpro_form textarea:focus,
#loginform input:focus,
.pmpro_form input:focus {
    background: rgba(236, 236, 236, 0.08) !important;
    border-color: #bd9af8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(189, 154, 248, 0.1) !important;
}

/* Input Placeholders */
#pmpro_form input::placeholder,
#loginform input::placeholder,
.pmpro_form input::placeholder {
    color: rgba(236, 236, 236, 0.4) !important;
    opacity: 1 !important;
}

/* ============================================
   LABELS
   ============================================ */

#pmpro_form label,
#loginform label,
.pmpro_form label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    color: #ececec !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* ============================================
   CHECKBOXES & RADIO BUTTONS
   ============================================ */

#pmpro_form input[type="checkbox"],
#pmpro_form input[type="radio"],
#loginform input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* ============================================
   BUTTONS
   ============================================ */

/* Primary Buttons */
#pmpro_form .pmpro_btn,
#pmpro_form input[type="submit"],
#pmpro_form button[type="submit"],
#loginform .button-primary,
#loginform #wp-submit,
.pmpro_btn-submit {
    width: 100% !important;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #6b21a8, #7c3aed) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: #ececec !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(107, 33, 168, 0.2) !important;
}

/* Button Hover */
#pmpro_form .pmpro_btn:hover,
#pmpro_form input[type="submit"]:hover,
#pmpro_form button[type="submit"]:hover,
#loginform .button-primary:hover,
#loginform #wp-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(107, 33, 168, 0.3) !important;
}

/* Button Active */
#pmpro_form .pmpro_btn:active,
#pmpro_form input[type="submit"]:active,
#pmpro_form button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* ============================================
   ERROR STATES
   ============================================ */

/* Error Fields */
#pmpro_form .pmpro_error,
#pmpro_form input.pmpro_error,
#pmpro_form select.pmpro_error {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
}

/* Error Messages */
.pmpro_message.pmpro_error,
.pmpro_error {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(135deg, #ff4444, #cc0000) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
    font-size: 0.875rem !important;
}

/* Success Messages */
.pmpro_message.pmpro_success,
.pmpro_success {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(135deg, #6b21a8, #7c3aed) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
    font-size: 0.875rem !important;
}

/* ============================================
   PRICING GRID FIXES
   ============================================ */

.pricing-grid {
    background: linear-gradient(135deg, rgba(189, 154, 248, 0.05), rgba(189, 154, 248, 0.02)) !important;
    border: 1px solid rgba(189, 154, 248, 0.1) !important;
    border-radius: 1rem !important;
    padding: 2.5rem !important;
    position: relative !important;
    overflow: visible !important;
}

.pricing-col {
    margin-bottom: 2rem !important;
}

.pricing-head-detail {
    margin-bottom: 1.5rem !important;
}

.pricing-head-detail h3 {
    color: #bd9af8 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
}

.pricing-details-wrap {
    margin: 2rem 0 !important;
}

.pricing-item {
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(236, 236, 236, 0.1) !important;
}

.pricing-item.border-none {
    border-bottom: none !important;
}

.pricing-info {
    display: flex !important;
    align-items: center !important;
    color: #ececec !important;
    font-size: 1rem !important;
}

.pricing-margin {
    height: 1px !important;
    background: rgba(236, 236, 236, 0.2) !important;
    margin: 2rem 0 !important;
}

/* ============================================
   HELPER CLASSES
   ============================================ */

.pmpro_required {
    color: #ff4444 !important;
}

.pmpro_hint,
.lite {
    color: rgba(236, 236, 236, 0.64) !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
    display: block !important;
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */

@media screen and (max-width: 991px) {
    /* Stack checkout grid on tablet */
    .w-layout-grid[style*="grid-template-columns: 1.5fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .pricing-grid {
        padding: 2rem !important;
    }
}

@media screen and (max-width: 767px) {
    /* Stack all grids on mobile */
    .w-layout-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    #pmpro_form input,
    #pmpro_form select,
    #pmpro_form textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .pricing-grid {
        padding: 1.5rem !important;
    }
    
    .button-small {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* ============================================
   WORDPRESS ADMIN BAR FIX
   ============================================ */

body.admin-bar .hero-section.is-100vh {
    min-height: calc(100vh - 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hero-section.is-100vh {
        min-height: calc(100vh - 46px) !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    footer,
    .button,
    .hero-section {
        display: none !important;
    }
    
    .section {
        border: none !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
