/* NXTRUNN Form Styles */

/* Form Wrapper */
.nxtrunn-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Form Sections */
.nxtrunn-form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.nxtrunn-form-section:last-of-type {
    border-bottom: none;
}

.nxtrunn-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #8f657c;
}

.nxtrunn-section-description {
    margin: -10px 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Form Fields */
.nxtrunn-form-field {
    margin-bottom: 20px;
}

.nxtrunn-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.nxtrunn-form-field input[type="text"],
.nxtrunn-form-field input[type="email"],
.nxtrunn-form-field input[type="url"],
.nxtrunn-form-field select,
.nxtrunn-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nxtrunn-form-field input:focus,
.nxtrunn-form-field select:focus,
.nxtrunn-form-field textarea:focus {
    outline: none;
    border-color: #8f657c;
    box-shadow: 0 0 0 3px rgba(143, 101, 124, 0.1);
}

.nxtrunn-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Rows */
.nxtrunn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Checkbox Labels */
.nxtrunn-checkbox-label {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.nxtrunn-checkbox-label:hover {
    background: #f0f0f1;
    border-color: #b69baa;
}

.nxtrunn-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.nxtrunn-checkbox-label input[type="checkbox"]:checked + * {
    font-weight: 600;
}

/* Field Help Text */
.nxtrunn-field-help {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Badges Section */
.nxtrunn-badges-section {
    background: linear-gradient(135deg, #faf9fb 0%, #f5f3f7 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e5d9e8;
}

.nxtrunn-badges-section h3 {
    color: #8f657c;
}

.nxtrunn-badges-section .nxtrunn-checkbox-label {
    background: white;
}

/* Submit Button */
.nxtrunn-form-actions {
    text-align: center;
    margin-top: 30px;
}

.nxtrunn-submit-btn {
    padding: 16px 50px;
    background: linear-gradient(135deg, #8f657c 0%, #a9899b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(143, 101, 124, 0.3);
}

.nxtrunn-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 101, 124, 0.4);
}

.nxtrunn-submit-btn:active {
    transform: translateY(0);
}

.nxtrunn-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Message */
.nxtrunn-form-message {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.nxtrunn-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nxtrunn-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .nxtrunn-form-wrapper {
        padding: 25px 20px;
    }
    
    .nxtrunn-form-row {
        grid-template-columns: 1fr;
    }
    
    .nxtrunn-submit-btn {
        width: 100%;
    }
}