/* BAIT Lead Capture Form Styles */

/* Container and Wrapper */
.bait-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.bait-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bait-form-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Form Icon */
.bait-form-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Form Header */
.bait-form-header {
    text-align: center;
    margin-bottom: 35px;
}

.bait-form-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.bait-form-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* Form Groups */
.bait-form-group {
    margin-bottom: 8px;
}

.bait-label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.bait-required {
    color: #e74c3c;
    font-weight: 700;
}

/* Input Fields */
.bait-input,
.bait-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8edf2;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
    box-sizing: border-box;
}

.bait-input:focus,
.bait-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.bait-input.error,
.bait-textarea.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.bait-input.error:focus,
.bait-textarea.error:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.bait-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error Messages */
.bait-error-message {
    display: none;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.bait-form-group.has-error .bait-error-message {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alerts */
.bait-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.bait-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.bait-alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Submit Button */
.bait-submit-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bait-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.bait-submit-button:active {
    transform: translateY(0);
}

.bait-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.bait-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bait-submit-button:hover::before {
    left: 100%;
}

/* Button Loading State */
.bait-button-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bait-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Honeypot Field (Hidden) */
.bait-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Privacy Notice */
.bait-privacy-notice {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8edf2;
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.6;
}

.bait-privacy-notice a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bait-privacy-notice a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Theme Variations */

/* Christmas Theme */
.bait-form-container.theme-christmas .bait-form-wrapper {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #27ae60;
}

.bait-form-container.theme-christmas .bait-form-title {
    color: #c0392b;
}

.bait-form-container.theme-christmas .bait-submit-button {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.bait-form-container.theme-christmas .bait-submit-button:hover {
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
}

.bait-form-container.theme-christmas .bait-input:focus,
.bait-form-container.theme-christmas .bait-textarea:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* Minimal Theme */
.bait-form-container.theme-minimal .bait-form-wrapper {
    box-shadow: none;
    border: 1px solid #e8edf2;
    padding: 30px;
}

.bait-form-container.theme-minimal .bait-form-icon {
    display: none;
}

.bait-form-container.theme-minimal .bait-submit-button {
    background: #2c3e50;
    border-radius: 4px;
}

.bait-form-container.theme-minimal .bait-submit-button:hover {
    background: #34495e;
    box-shadow: none;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bait-form-container {
        padding: 10px;
    }
    
    .bait-form-wrapper {
        padding: 25px 20px;
    }
    
    .bait-form-title {
        font-size: 24px;
    }
    
    .bait-form-subtitle {
        font-size: 14px;
    }
    
    .bait-input,
    .bait-textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .bait-submit-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .bait-form-wrapper {
        padding: 20px 15px;
    }
    
    .bait-form-title {
        font-size: 20px;
    }
    
    .bait-form-icon {
        font-size: 36px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bait-form-container:not(.theme-minimal) .bait-form-wrapper {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .bait-form-container:not(.theme-minimal) .bait-form-title {
        color: #ecf0f1;
    }
    
    .bait-form-container:not(.theme-minimal) .bait-form-subtitle {
        color: #bdc3c7;
    }
    
    .bait-form-container:not(.theme-minimal) .bait-label {
        color: #ecf0f1;
    }
    
    .bait-form-container:not(.theme-minimal) .bait-input,
    .bait-form-container:not(.theme-minimal) .bait-textarea {
        background: #34495e;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .bait-form-container:not(.theme-minimal) .bait-input:focus,
    .bait-form-container:not(.theme-minimal) .bait-textarea:focus {
        background: #34495e;
        border-color: #3498db;
    }
}

/* Print Styles */
@media print {
    .bait-form-container {
        display: none;
    }
}