/**
 * JustDonate: GiveWP Connector - Input Widget Styles
 * 
 * Professional default styling for connector input widget with
 * brand-consistent appearance and smooth interactions.
 * 
 * @file        input-styles.css
 * @description  Default styling for connector input widget
 * @version     1.2.0
 * @author      JustDonate
 * @since       1.2.0
 * @package     JustDonate
 * @subpackage  GiveWPConnector
 */

/* ==========================================================================
   CONNECTOR INPUT - DEFAULT APPEARANCE
   ========================================================================== */

.justdonate-input {
    /* Brand Colors */
    background-color: #ffffff;
    color: #333333;
    border-color: #512da8;
    
    /* Typography */
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    
    /* Spacing & Dimensions */
    padding: 15px 16px;
    width: 100%;
    min-height: 46px; /* Compensate for 2px top + 2px bottom border */
    
    /* Border & Shape */
    border: 2px solid #512da8;
    border-radius: 6px;
    outline: none;
    
    /* Interactive States */
    transition: all 0.3s ease;
    box-sizing: border-box;
    
    /* Visual Effects */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Layout */
    display: block;
    vertical-align: middle;
    position: relative;
    
    /* User Selection */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* ==========================================================================
   CONNECTOR INPUT - FOCUS STATE
   ========================================================================== */

.justdonate-input:focus {
    /* Focus Colors */
    border-color: #512da8;
    background-color: #ffffff;
    color: #333333;
    
    /* Focus Effects */
    box-shadow: 0 0 0 3px rgba(81, 45, 168, 0.3);
    outline: none;
}

/* ==========================================================================
   CONNECTOR INPUT - HOVER STATE
   ========================================================================== */

.justdonate-input:hover {
    /* Hover Colors */
    border-color: #673ab7;
    background-color: #f8f9ff;
    
    /* Hover Effects */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   CONNECTOR INPUT - PLACEHOLDER
   ========================================================================== */

.justdonate-input::placeholder {
    /* Placeholder Styling */
    color: #999999;
    font-style: italic;
    opacity: 1;
}

/* ==========================================================================
   CONNECTOR INPUT - DISABLED STATE
   ========================================================================== */

.justdonate-input:disabled,
.justdonate-input.disabled {
    /* Disabled Appearance */
    background-color: #f5f5f5;
    color: #cccccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ==========================================================================
   CONNECTOR INPUT - WRAPPER RESPONSIVE
   ========================================================================== */

.justdonate-input-wrapper {
    /* Input Container */
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Alignment variations */
.justdonate-input-wrapper[data-align="center"] {
    text-align: center;
}

.justdonate-input-wrapper[data-align="right"] {
    text-align: right;
}

.justdonate-input-wrapper[data-align="justify"] {
    text-align: justify;
}

.justdonate-input-wrapper[data-align="justify"] .justdonate-input {
    width: 100%;
}

/* ==========================================================================
   CONNECTOR INPUT - RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet Optimization */
@media (max-width: 768px) {
    .justdonate-input {
        /* Mobile Optimization */
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .justdonate-input {
        /* Small Mobile Optimization */
        padding: 12px 14px;
        font-size: 16px;
        min-height: 44px;
    }
}

/* ==========================================================================
   CONNECTOR INPUT - ACCESSIBILITY
   ========================================================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .justdonate-input {
        border-width: 3px;
        border-color: currentColor;
    }
    
    .justdonate-input:focus {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .justdonate-input {
        transition: none;
    }
    
    .justdonate-input:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* ==========================================================================
   CONNECTOR INPUT - ELEMENTOR INTEGRATION
   ========================================================================== */

/* Ensure Elementor controls can override these styles */
.elementor-widget-wrap .justdonate-input {
    /* Allow Elementor to control these properties */
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-size: var(--e-global-typography-primary-font-size, 16px);
    font-weight: var(--e-global-typography-primary-font-weight, 400);
    color: var(--e-global-color-primary, #333333);
    background-color: var(--e-global-color-accent, #ffffff);
    border-color: var(--e-global-color-secondary, #512da8);
}

/* ==========================================================================
   CONNECTOR INPUT - DEBUGGING HELPER
   ========================================================================== */

/* Debug mode - show input boundaries */
.justdonate-debug .justdonate-input {
    border: 1px dashed #ff0000;
}

.justdonate-debug .justdonate-input-wrapper::before {
    content: "JustDonate Input";
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 10px;
    color: #ff0000;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 2px;
}
